-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install unpackaged app after a packaged app has been installed #1871
Comments
Please run the following command between these steps and share the results
Given the installer reported
I'd expect Microsoft.WindowsAppRuntime.1.0 version >= 0.319.455.0 is already registered when you run the installer. If so this is a known issue in the installer (should detect this condition and treat as success). @sachintaMSFT I thought we had a work item for that but can't find it to share here via https://task.ms/nnnnnn |
I have the same issue. The results of the suggested command the first time
After uninstalling all WinAppRuntime and running the x64 Installer again:
So it seems there are missing packages that should be installed, even if |
We've identified the root problem and working on a fix. Go here for more details: |
@DrusTheAxe While that's the root cause, this issue demonstrates that the installer doesn't swallow package-already-installed HRESULTs. Perhaps consider doing so to cover the scenario in which the user is legitimately blocked from reinstalling that package (i.e. non identity related reasons)? |
It's not quite that simple. The installer does detect already-installed and if so, re-register the package (a form of repair-if-something's-broken). That's detected just fine as not an error, as you can see here The problem here's slightly different - package XYZ is installed and you're trying to install a package with the same identity but different content. That violates a base principle of the appmodel -- package identity is unique across space and time. That multiple packages with the same package identity has the same bits. The bug here is the 1.0.0 framework packages available for download and included in the NuGet, VSIX and installer are identical but the frameworks installed by the Store have different content. Specifically, their The root problem is due to a bug in our build process. We've corrected that so it won't happen again. This was specific to 1.0.0. Anyone with (any) 1.0.0 packages installed can upgrade fine to 1.0.1(+) packages just fine. It's only the "install the same thing that's not really the same thing" that's a problem. |
Fixed in 1.0.1, check out the release for more info: #2291 |
Describe the bug
The WinAppRuntime Installer fails to install if a packaged app using WinAppSDK has already been installed. It seems as if fails while trying to update the existing packages and therefore fails to install the remaining packages that are needed for an unpacakged app.
Steps to reproduce the bug
First, uninstall all versions of WinAppRuntime by using an admin PowerShell to replicate a "clean" computer...
Then, install a MSIX WinUI 3 app like https://github.com/andrewleader/WindowsAppSDKGallery/releases/download/v0.39.1.0/WindowsAppSDKGallery_0.39.1.0_AnyCPU.msix (you'll have to add the certificate before installing)
Then, try running the x64 Installer to prep for using an unpackaged app: https://aka.ms/windowsappsdk/1.0-stable/msix-installer
Notice the following errors appear...
Try running an unpackaged app like https://github.com/andrewleader/WindowsAppSDKGallery/releases/download/v0.39.1.0/WindowsAppSDKGallery-unpackaged-0.39.1.0.zip (extract the ZIP and then double click
WindowsAppSDKGallery.exe
)Notice the EXE crashes (nothing visible appears since fails before XAML starts up).
Uninstall all WinAppRuntime using the same PowerShell script at the start, and then try running the x64 Installer again and try using the unpackaged app again. Notice this time it works fine.
Expected behavior
Should be able to install unpackaged apps regardless of whether packaged apps have already been installed.
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Unpackaged
Windows version
Insider Build (xxxxx)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: