DesktopWebview2ControlMBS issue after innosetup installer


I tried to add to my application DesktopWebView2ControlMBS to my project but the control does not shows up on some windows.

What I did is I created a container with a variant property. On the open event of the container, #if targetWindows, I create the new control DesktopWebView2ControlMBS and store the reference in the variant. All the codes after check the platform and the variant to execute code

So far so good, when I develop on my computer, everything is okay. The build generated also. But then I create an installer using InnoSetup and I install the software.

When I start the installed version, the viewer no longers works. But it works with the build generated by Xojo.

Edge Webview2 is correctly installed on the computer with the correct version, tried to bundle it with innosetup but nothing changed.

If someone has any idea or encountered the same issue. Thank you


Could you try by setting UserDataFolder property in Configure event?

As otherwise it may not get the right folder to store data files.

I will try that and let you know

Working as expected !

Thank you Christian

1 Like