Forum Discussion
WebView2 external dependency cannot be installed from an MSIX package on a Windows 10 target machine
Aditi_Narvekar I really think there is no other proper channel than the current one to submit this issue. It's an MSIX deployment issue and this is why I have posted it on MSIX community.
In case this helps, here it is a download link for an MSIX package that easily replicate this problem.
https://drive.google.com/file/d/1gJf1C9TdZQf5_mnuHgNlfA_47vq4CRzw/view?usp=sharing
You should just try to install it on a Windows 10 test machine with no WebView previously installed. Also do not forget to manually install the certificate the sample MSIX is signed with under the "Trusted Root Certification Authorities" store on your local machine. Same steps like the ones exposed here:
https://www.advancedinstaller.com/install-test-certificate-from-msix.html
I think this is all you need to replicate and investigate the issue, generate whatever logs do you need, etc.
Let me know if you can have a look on this.
Daniel1175 This error can happen if you re-sign the installer or pass incorrect parameters to it. See:
https://github.com/MicrosoftEdge/WebView2Feedback/issues/1582
Are you re-signing the installer with your own certificate?
- Daniel1175Aug 01, 2022Copper Contributor
MikeH Mike, I am not re-signing the WebView2 installer nor do I pass any command line arguments to it.
To recap, the WebView2 is specified in the manifest of an MSIX package as a dependency. This means that when the MSIX package is installed the Microsoft's App Installer tool will download the WebView2 installer (from Microsoft's hosted repository) and launch it for installation.
The WebView2 installer download and install operation is solely handled by the Microsoft App Installer app. So I think this issue is on the Microsoft App Installer app side.
Once again the MSIX package (you can download and test it from my previous post) is built as per the specs of https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-win32dependencies-externaldependency.
- KeeganFerrettAug 22, 2022Copper Contributor
Daniel1175 Hi there. Did you ever figure this out? Running into the same issue with WebView2 and MSIX.
- Daniel1175Sep 14, 2022Copper ContributorKeeganFerrett: Hi, I'm afraid not. Still waiting for a reply on this thread from someone from Microsoft's side. 😞