gowebview
gowebview copied to clipboard
Failed to run executible on clean windows install
Hi,
While everything should be embedded in one executable it should be possible to run the executable on an other computer. I've just build your example. Installed a fresh instance of windows on vmware player and moved the executable to that instance.
When I run it i get:
2021/06/15 02:28:31 Failed to create webview2: failed to initialize the window: failed to embed the browser: failed to call CreateCoreWebView2EnvironmentWithOptions: The system could not find the environment option that was entered.
It looks like it's some how not embedded :(.
On the development machine it works.
Regards,
D4v1d
What is the version of the Windows?
You need the WebView 2. It seems that Windoow is getting the WebView 2 from Windows Updates, without requiring to manually install.
The best option is to check if the WebView 2 is installed, https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution#online-only-deployment. If it's not installed you can download it from https://developer.microsoft.com/en-us/microsoft-edge/webview2/. I think you can download and run it programmatically, when the WebView 2 is missing.
Did I understand the readme wrong? I thought the WebView 2 is embeded in the executable when you build it and therefor you don't need to install webview 2 on the machine where you run it. Second of all, on the development machine I did not install WebView 2 either. And there it runs.
What is embbeded is the WebView2Loader.dll
, which is extracted during the runtime But, the WebView2Loader.dll
requires WebView2. That DLL was needed due to https://github.com/MicrosoftEdge/WebView2Feedback/issues/110. The installer of Webview 2 isn't included embbeded.