I've built out a winforms application in Visual Studio that utilizes the WebView2 control. When I deploy the application to one of my users via publishing directly to their computer, the application works as expected and can properly load the WebView2 control.
However, when I deploy to a folder and package everything into an msi via WiX the control fails to load, though the rest of the application works as expected.
One thing that I've noticed is that in the initial deployment the following is what is output:
Once the application is run from the folder it was published to, a new folder appears:
When I have WiX package up the pre-run output, install the resulting msi, and run the application, this folder doesn't get created on first launch like it does with the publish option.
If I run the published application, then have WiX package the resulting ApplicationSuite.exe.WebView2
folder, it still does not load in the WebView2 control after installation.