Reputation: 17
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 ?
Upvotes: 0
Views: 770
Reputation: 361
You can refer Webview distribution There are 2 way to get the root cause,
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:
create a setup project
in application folder add your wpf exe and webview2 exe
right click on project -> View -> custom action
open the custom action -> Install -> add the webView2.exe
run the setup.exe it will install the webviewruntime also
Upvotes: 1