Home > database >  Webview runtime setup while wpf app installation
Webview runtime setup while wpf app installation

Time:12-07

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 ?

CodePudding user response:

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

  •  Tags:  
  • wpf
  • Related