I'm using some code in VB (Visual Studio 2022) that's using Webview2 on my desktop. I made a setup file to install it on my laptop. Unfortunatly Webview2 is not included in the setup file, and the code works fine till I want to open a page. How can I include Webview2 in the setupfiles so everything works right from the start?
In the solution explorer I find under Dependencies, Under Packages Microsoft.Web.Webview2 (1.0.1054.31) Under Setup1 (Visual Studio Installer) I find Detected Dependecies = Empty.
I found some warnings while creating the MSI-file
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'Voetbalbrowser2.exe' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
WARNING: File 'WebView2Loader.dll' of project output 'Publish Items from Voetbalbrowser2 (Active)' targeting 'Unknown' is not compatible with the project's target platform 'x86'
Those were all the warnings. Build: 1 succeeded 0 failed ...