-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Run as Administrator no longer works #2042
Comments
I've also been able to reproduce this problem on my own build of Terminal master (dca0ffe) and was about to file my own bug!
I've found that:
From my debugging, it appears that Terminal crashes when trying to activate the Windows Runtime class This class was introduced yesterday as part of the faulty change 8ffff8e (PR #1948) noted above. I verified that rebuilding Terminal after going back to the immediately previous commit makes the problem disappear. |
I can reproduce the problem reliably when I run my own build of Terminal master after deploying the loose-file app package folder with PowerShell. As a (possibly misleading!) point of interest, when I run the |
This is a silly and complicated issue. At the heart of it: Centennial applications that depend on WinRT classes cannot be launched as Administrator. Period. This is a bug, and one that's not likely to be fixed for a while. I'll go into details if somebody wants. 😄 EXCEPT: in 19H1, the app platform team introduced "side-by-side" registration-free WinRT. It's the same thing that makes double-click activation work for Windows Terminal! @metathinker correctly identified this, and it's not misleading at all. We just have to keep a completely separate list of all activatable runtime classes in sync with the one in the AppX manifest. This was difficult until 18362, when the manifest tool The pull request #2043 finally lands some work that's been on my dev branch for three months. It should fix this entire class of issues, possibly forever. |
And just to call out: 8ffff8e was not faulty; the existence of a split parallel universe manifest is what was faulty. |
I had roughly the same problem - when I tried to run the application as an administrator I was getting 2 UAC prompts and then gave an error message. I managed to overcome the problem by installing the app in the administrator user profile. After that I can already launch the app as an administrator from my profile. |
@metathinker you're probably right. the error message matches the one I was getting |
I'm very interested in this. @DHowett-MSFT are there any further information available? I can't find it in "what's new in Windows 10 for developers". |
With the latest build I am no longer able to launch Terminal as administrator. This isn't the same as #1872 because I only get the UAC prompt once and I'm not seeing the other message box as is reported there.
I was able to determine that this problem was introduced with commit 8ffff8e (#1948).
Environment
Steps to reproduce
Try to launch the app as administrator
Expected behavior
UAC prompt appears then the elevated Terminal runs
Actual behavior
UAC prompt appears and the border of a window is displayed but the process hangs at that point. I have to kill the process with Task Manager.
The text was updated successfully, but these errors were encountered: