Forum Discussion
WebView2 external dependency cannot be installed from an MSIX package on a Windows 10 target machine
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.
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. 😞
- Jan 16, 2024
Daniel1175 Bumping this thread, but providing more information...
I Deployed a package similar to as described, on Windows 11 23H2 and latest Appinstaller. I also added Optional="false", in an attempt to determine if the dependency was being attempted.
The package was successfully installed by the DesktopAppInstaller, however the app didn't work because WebView2 was not working.
Finding #1:
After installing, running the Get-AppXLog cmdlet shows that the following warning occured during the installation:
App manifest validation warning: Declared namespace http://schemas.microsoft.com/appx/manifest/externaldependencies is inapplicable, it will be ignored during manifest processing.
This would likely indicate that the dependency would be ignored since the namespace isn't being supported. A check of the latest documentation (win32dependencies:ExternalDependency (Windows 10, Windows 11) - Windows UWP applications | Microsoft Learn) shows no listed minimum versions, although in the Requirements table it does say "virtualization" for the item column, but I believe that to be a typo. The minimum version of AppInstaller is stated, but that is satisfied.
I also noticed that in the example, the MinVersion fields for the target OS were too high (11.0 and 12.0 don't exist, at least not yet), but as this is an example one assumes that a 10.0 number like 10.0.19041.0 should be fine if there is no explicit minimum version mentioned in the documentation.
Further confirmation by using Get-AppXPackage shows that no dependency package was added to the system when the package was installed.
Finding #2:
Furthermore, checking Winget, I can find no package with the Microsoft.WebView2 name. The closest match might be Microsoft.EdgeWebView2Runtime.
Finding #3:
Hoping that perhaps all that is needed I also tried a manual installation of the WebView runtime (exe downloader from the Microsoft website), but this too does not satisfy the needs of the package running in the container.
Summary
From this, I assume that either the entire documentation is incorrect, was never implemented, or a typo in the documentation regarding the namespace itself is the cause. I can find no corrected namespace to try after looking under every rock I can find.
IT Pros remain at a standstill and are unable to package the growing number of vendor apps that use WebView2 in their products.
- Daniel1175Jan 17, 2024Copper Contributor
TIMOTHY_MANGAN : Hi Tim,
Thank you for your thorough research on this! Your findings should be just enough for Microsoft team to easily investigate and find out the root cause of the issue.
However, seems like the MSIX project is not one of the Microsoft top priority anymore since no one from their side even bother to have a closer look on this. :((
All the best,
Daniel