Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run executible on clean windows install #15

Open
D4v1dW3bb opened this issue Jun 15, 2021 · 3 comments
Open

Failed to run executible on clean windows install #15

D4v1dW3bb opened this issue Jun 15, 2021 · 3 comments

Comments

@D4v1dW3bb
Copy link

D4v1dW3bb commented Jun 15, 2021

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

@inkeliz
Copy link
Owner

inkeliz commented Jun 15, 2021

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.

@D4v1dW3bb
Copy link
Author

D4v1dW3bb commented Jun 15, 2021

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.

@inkeliz
Copy link
Owner

inkeliz commented Jun 15, 2021

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 MicrosoftEdge/WebView2Feedback#110. The installer of Webview 2 isn't included embbeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants