-
Notifications
You must be signed in to change notification settings - Fork 344
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
This application requires the App Windows Runtime version 1.X when the runtime is already installed #4268
Comments
We are seeing this issue sporadically as well, both on dev machines + end-user installs. The installer logs show that we successfully acquired and ran the installer, and it completed successfully. We are on version 1.4.2 currently |
Just to make something clear, the Windows App Runtime is strongly versioned to the minor version too. So if you built the application with the Windows App SDK version 1.4, you MUST install the 1.4 version of the Windows App Runtime. Version 1.5 will not be found or used. |
Understood. We do install the specific version as part of our wix installer (1.4.2)
|
It's unclear from the thread but...are you running the installer elevated? If the installer's run elevated it will stage + provision the packages thus making them available to all users. Key difference there. In the latter case user1 has the package's registered but user2+ do not and will each need to install it. In the former, the packages are provisioned and will be registered for all users (current user now, other users at their next login). Depending how your and winappsdk's installers run, and the user and security contexts they run under, this could explain the inconsistencies. Hard to say given the limited information here but it's a thought. |
I have had users reinstall the app sdk package multiple times both with and without administrator rights without success |
Does this repro with 1.5? |
I cannot tell, the first version of my app running app sdk was with 1.5.1 |
Let's make sure it is the right installer. Here is the x64 one: https://aka.ms/windowsappsdk/1.5/1.5.240311000/windowsappruntimeinstall-x64.exe |
Yes, users are getting the right installer. App Sdk is bunded with my app installer, and for 99.9% of users it works out of the box. Only for that 0.1% it crashes. I have checked they had the proper versions installed, and they do |
Checked how? The packages need to be registered for that user or as far as the caller's concerned they don't exist. Easiest way to tell is to run from a mediumIL command prompt
That only shows packages registered to the user. If you run from an admin prompt
you'll also see NOTE: If |
The issue the user is facing is due to the AppSdk installer failing (see second screenshot of the linked post): |
The error message from there is French. Translate to English:
@bpulliam Thoughts...
|
I have received the output of one of the users who are receiving the issue:
This is the error they are receiving on EventViewer:
|
Why is user N/A? What user were the packages installed by? Please run from an admin prompt
That'll show the WinAppSDK packages on the machine and which users they're registered for or if they're merely staged.
0x80070005 = E_ACCESSDENIED. Which is odd. How is your app being launched? Clicking on tile in StartMenu? In file explorer right-click on .exe and Open, Run as administrator or Run as another user? Explicitly path'ing to your .exe? Are you a packaged or unpackaged app? |
User is n/a for privacy. I will attach the output of running the command once affected users answer back. |
I have been able to workaround this issue by deploying the app sdk self-contained with the app. |
Had the same problem with a solution where multiple projects contained references to different 1.4 builds. |
Having this problem too, with an unpackaged AOT-compiled WinUI 3 app on windows 11. Running the executable as admin didn't help. I also tried uninstalling and reinstalling the windows app SDK from the nuget package manager in visual studio, and updated the SDK build tools. Neither of these made a difference. Whenever I run the executable, a dialog box reads:
|
For anyone experiencing this, or "System.UnauthorizedAccessException" while calling AppNotificationManager.Register() - the above is the solution.
in the project file |
…ovide service for personal usage for users in mainland China; change publish config to embed windows desktop runtime since apparently the runtime installer is making trouble for some users (see microsoft/WindowsAppSDK#4268)
This problem occurs in 24H2, but not in 22H2. Edition Windows 11 Enterprise |
As the author for this issue already found a workaround for this, this issue will be closed. For anyone else who also encounter this issue (or similar issue), please open a new issue and paste your problem as well as the needed information. A new issue only for your problem is more clear and can better communicate rather than use this issue to track everyone's scenario. Per the discussion above, before you open a issue and announce you have met this issue, please double confirm that you have installed the WinAppSDK successfully and please paste the results into your issue as needed information:
|
@haonanttt I don't think the self-contained app is not the solution for the non-self-contained app that cannot find the app runtime, but I don't have the problem of the runtime after installing v1.6.5, so it seems to be fixed anyway. runtime v1.6.5 |
Describe the bug
I am receiving complaints of users being required to install the app runtime (which was installed on their computers by my app installer automatically), installing it as the prompt suggests and being prompted again to install it
Steps to reproduce the bug
Could not recreate it. Sometimes an app runtime uninstall works, sometimes it does not work for the affected users
Expected behavior
AppRuntime works after installing
Screenshots
No response
NuGet package version
Windows App SDK 1.5.1: 1.5.240311000
Packaging type
Unpackaged
Windows version
Insider Build (xxxxx), Windows 11 version 22H2 (22621, 2022 Update), Windows 11 version 21H2 (22000), Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022-preview
Additional context
No response
The text was updated successfully, but these errors were encountered: