Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Webview runtime setup while wpf app installation

I am deploying my wpf exe file using VS 2019 setup project. I am using webview2 in my wpf and I am able to see the result however my client machine is not able get any result .
Is there any way apart from what is mentioned in webview runtime documents mentioned by Microsoft.

Any simple way to install webview while user is installing the wpf setup ?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can refer Webview distribution
There are 2 way to get the root cause,

  1. just check app.exe.Webview2 folder is generated in your exe folder path.
  2. is webviewloder.dll is present or not ?

and if you want simple way to install the webview2 while installation then just download the microsoftWebviewSetup.exe and include the exe file in your custom action

steps:

  1. create a setup project

  2. in application folder add your wpf exe and webview2 exe

  3. right click on project -> View -> custom action

  4. open the custom action -> Install -> add the webView2.exe

  5. run the setup.exe it will install the webviewruntime also

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading