I have written a small program, what downloads 2 PDFs (marketplace shipping label), depending on a given purchase order on commandline. The App itself is build as unpackaged WinUI3. After downloading the PDFs, the Main Window starts, and the PDFs are visible with WebView2 in 2 different Pages. I included the WindowsSDK in the Build-Output, and its built as framework dependend.
The curious thing now is the following. If i'm starting the App from projects bin directory from commandline, the App works as expected. It downloads the PDFs, the MainWindow launches, and if i'm clicking on the pages, WebView2 launches as Page component and shows the PDF.
I'm planning to deliver it with a Installer (not MSIX), so unpackaged. For testing i copied the content of my bin directory to a new directory under C:\Program Files. If i'm starting the App from that location, with the same arguments, the App starts, i can access the two pages, but the pages are empty. No WebView2 is loaded (or loaded and not visible).
Maybe anyone has seen that too, and knows, how to fix that?