My blank app does not work properly with elevated privilege. #671
-
I created a new Though I did not add The same problem exists in my C++/WinRT project. I don't know whether a WinUI 3 app can work with elevated privilege. There are something I found before requesting your help. Software versions are listed below:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 21 replies
-
Hi @catsalwaysmeow, sorry for the delay. Unfortunately, WinUI 3 currently does not support running elevated. This is due to a limitation in WinRT in the OS (WinRT activation doesn't work in elevated apps), and we'll hopefully be fixing that in a future version of Windows. If you need elevation support, vote and tell us here: https://portal.productboard.com/winappsdk/1-windows-app-sdk/c/37-elevated-admin-support |
Beta Was this translation helpful? Give feedback.
-
How does Windows Terminal manage to do it if WinRT activation doesn't work in elevated apps? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Any updates on adding elevation(uiAccess=true) in winui3? |
Beta Was this translation helpful? Give feedback.
-
I had the same issue, WinUI3 app was not launching in elevated mode but worked fine in unelevated mode. Visual Studio output window logs below message when started in admin mode |
Beta Was this translation helpful? Give feedback.
Hi @catsalwaysmeow, sorry for the delay. Unfortunately, WinUI 3 currently does not support running elevated. This is due to a limitation in WinRT in the OS (WinRT activation doesn't work in elevated apps), and we'll hopefully be fixing that in a future version of Windows.
If you need elevation support, vote and tell us here: https://portal.productboard.com/winappsdk/1-windows-app-sdk/c/37-elevated-admin-support