MSIX WebView2 ExternalDependency failing to install/update.

Terry Meacham 0 Reputation points
2024-11-25T19:45:25.7566667+00:00

We have an MSIX based application that we ship that depends on the Evergreen WebView2 installs, relying instead on the ExternalDependency support to ensure an evergreen install exists.

Some of our users have reported that WebView2 fails to install properly (even though Windows 11 and AppInstaller are fully updated). They get the error message "App Installer failed to install package dependencies. Ask the developer for package Microsoft.WebView2". Some users reported that WebView2 was already installed w/ a suitable version.

Even Viewer has an info entry that says 'Declared namespace ...externaldependencies is inapplicable. It will be ignored during manifest process' (unsure if this is related or not).

The ExternalDependency element in the manifest was taken almost directly from the Microsoft support page for it:

<win32dependencies:ExternalDependency Name="Microsoft.WebView2" Publisher="CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" MinVersion="126.0.2592.0" Optional="false"/>

This issue affects a small but non-trivial subset of our users. We are using a AppName.appinstaller file as our primary install mechanism.

Some users could update from an older version of our app that didn't depend on WebView2. This didn't work consistently, though, as some users' WebView2 installs failed on update. Manual install of Evergreen installer seemed to work in some cases, but not all.

Curious to see if anyone else has seen this or what steps I can take to further troubleshoot/reproduce. My team has not been able to reproduce on any of our machines locally. We'd definitely prefer using WebView2 via the evergreen installer to rolling the fixed version bundled in.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
803 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.