TL;DR: trying to use the native web view on Windows is horrible because there is no native web view and MS can't bundle software for their own platform.
Of course I suppose shipping any software for Windows is horrible...
TL;DR: trying to use the native web view on Windows is horrible because there is no native web view and MS can't bundle software for their own platform.
Of course I suppose shipping any software for Windows is horrible...
Microsoft's WebView2 has three distribution options: the "evergreen bootstrapper," the "evengreen standalone installer," and "fixed version" (where you embed a browser version in your installer).
https://developer.microsoft.com/en-us/microsoft-edge/webview...
Tauri supports all three of those mechanisms. If you choose to embed the browser directly in your installer, it adds 100MB+ to your installer size, but it's guaranteed to work anywhere. (They even support Windows 7.)
https://tauri.app/v1/guides/building/windows#webview2-instal...
Being sarcastic of course, but... hey maybe I'll take another look.
MS keeps the evergreen bootstrapper URL stable specifically so you can download it programmatically, it’s not fragile. And if you choose to ship the evergreen bootstrapper yourself, you don’t have to update it.
The WebView2 runtime ships with Windows 11, major applications like Office, and they’re currently rolling it out to most Windows 10 installs.
We used to use a native webview in an app and found that our app (packaged as MSI) would not install in a lot of enterprise environments because they don't allow secondary installers not signed by the same key as the primary installer. That means no bundling or side loading Edge. They would also require special security policy review to install Edge, making the whole thing really painful.
If you are only targeting personal end users a lot of what I said may not apply but it absolutely does apply in enterprise.
P.S. We did finally drop Windows 7 support a while back but we still get asked for it regularly. We get asked for Windows XP every now and then. Enterprise.