Unpackaged WinUI3 desktop app does not start up on Windows 11 #2632
Replies: 6 comments 6 replies
-
I also use Windows 11, but it works just fine, so I need to know something more. If it is V1.1, it is recommended to add This should work as it deploys the runtime of the Windows App SDK it depends on. |
Beta Was this translation helpful? Give feedback.
-
Hi @dimohy - Many thanks for the quick response. As regards your comment about V1.1, we are not yet using WindowsAppSDK 1.1, but I wondered if in fact I should be switching over to that version. When we build this unpackaged desktop app, we do not do anything specific to publish other than add When you say that "it deploys the runtime of the Windows App SDK it depends on", does that mean the app, using the project setting you advise above, will attempt to download the SDK version it needs and install it, or that the app will use what's already installed on the system? I will be doing more testing over the coming weeks on Windows 11. Since the app must run on both Win 10 and 11, whatever I do has to accommodate both Windows versions - I don't want to have to build two different configurations. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Hi @dimohy - So if I understand, by using All of this presupposes that the versions of those runtimes work on the target systems. My concern is that the WindowsAppSDK that I was using on Win10 will not work on Win11 (but I have not yet personally tested this - I am going on hearsay). Anyway, it's good to know that you can bundle everything you need. I will have to try this out and see how large the package is. Thanks very much, again. |
Beta Was this translation helpful? Give feedback.
-
Hi @dimohy - I finally got my hands on a Win11 system and did some testing. First I confirm what you said about using WindowsAppRuntime on a Win11 system. The short answer is that it does work. The long answer is that it seems you must have the exact WindowsAppRuntime version installed that was used to build the app. If I install a later version of WindowsAppRuntime than was used to build the app without having the earlier version installed, then the app does not start up. This presents a problem. If we go with our present plan of trying to install the (earlier) build version of WindowsAppRuntime and there is already a later version of that runtime on the system, we get an error that indicates the earlier version will not install - and thus the app will not run. Since WindowsAppRuntime can get installed by any app that needs it (including MS Store apps), then our install plan is not going to work. All of this begs the question of why later versions of WindowsAppRuntime are not compatible with earlier versions (eg, why can an app built with version WindowsAppRuntime 1.0 run when only WindowsAppRuntime 1.1 is installed?) Anyway, I think that I need to consider your suggestion of using Am I correct in assuming that the resulting package will contain everything I need to run the app - even if that includes an earlier version of WindowsAppRuntime than is currently installed on the system? Obviously, I can (and will) do some testing on this, but wanted to make sure I'm not overlooking anything. Thanks very much for your time in answering my questions. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @sachintaMSFT, Thank you very much for replying to my questions. What I've found out that if a version of the WindowsAppRuntime (WAR) is installed that is greater than the version built with, then we can't install the version that works with our app. For example, out installer attempts to install WAR 1.0 on a system that has never seen our app. If WAR 1.0.3 is on the system, then we can't install 1.0. But by your explanation above, the app should run with 1.0.3, so in this case there should not be a problem in being able to run the app. However, if WAR 1.1 is installed, then we would not be able to install 1.0 (or any WAR version that is less than 1.1). So, the question is really: how do we guarantee that we can always have a version of WAR on the system that is compatible with what we used to build the app? Again, many thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
if you want to use WindowsAppRuntime 1.0 remove all runtime (when uninstall failed, maybe need to remove some app which use the runtime)
install runtime from microsoft offical site, then everyting is okhttps://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads
|
Beta Was this translation helpful? Give feedback.
-
Hello -
Does anybody know of reasons why an unpackaged WinUI3 desktop app would not start up on Windows 11?
We're using Microsoft.WindowsAppRuntime.Redist.1.0.0 and WindowsAppSDK.Cs.Extension.Dev17.Standalone.vsix (vc_redist.x64) to support the app. The app has been opening and working fine on Windows 10.
Any guidance would be greatly appreciated.
Thank you.
Robert
Beta Was this translation helpful? Give feedback.
All reactions