-
-
Notifications
You must be signed in to change notification settings - Fork 654
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 the uninstaller with administrator privileges #16505
Run the uninstaller with administrator privileges #16505
Conversation
I think that's okay. I assume that tool is used to uninstall NVDA from a computer, not delete the portable copy. A portable copy cannot be installed or uninstalled |
NVDA cannot be uninstalled correctly by directly running "%ProgramFiles(x86)%\NVDA\uninstall.exe". You must run it as an administrator to uninstall it correctly. Description of user facing changes You can directly run "%ProgramFiles(x86)%\NVDA\uninstall.exe" to uninstall NVDA Description of development approach Change RequestExecutionLevel to admin
I'm reverting this PR as it makes admin permissions required to generate the uninstaller. I don't believe this is setup correctly. Please file an issue first describing the problem you are facing, as generally the uninstaller works for me and requests admin level. |
This reverts commit ed5ede9. Reverts #16505 Issues fixed None Issues reopened None Reason for revert The approach in #16505 appears incorrect. Admin level is requested when generating the uninstaller, not when running it. It is also dubious if the original issue is valid. Can this PR be reimplemented? If so, what is required for the next attempt An issue should be filed first and investigated
It seems that When running the uninstaller from control panel / programs and features, or Windows Settings -> Apps -> installed apps: Windows automatically elevates the uninstaller. I.e. I get a UAC screen each time. |
I agree, I think the typical pattern here for consumers is to run commands from an administrator terminal when its needed. |
But the uninstall icon in |
Good point.
Yes, we should either remove that shortcut, or change it to use the
shell to request elevation.
Message ID: ***@***.***>
|
Also, I really don’t think running the uninstall program directly should be unsupported, unless the program is invisible to the user, otherwise there should be no reason to prevent the user from doing this. |
Please open a new issue for the shortcut bug |
Link to issue number:
none
Summary of the issue:
NVDA cannot be uninstalled correctly by directly running
"%ProgramFiles(x86)%\NVDA\uninstall.exe"
. You must run it as an administrator to uninstall it correctly.Description of user facing changes
You can directly run
"%ProgramFiles(x86)%\NVDA\uninstall.exe"
to uninstall NVDADescription of development approach
Change
RequestExecutionLevel
toadmin
Testing strategy:
Manually run
"%ProgramFiles(x86)%\NVDA\uninstall.exe"
, the uninstaller should correctly apply for administrator rights and uninstall NVDAKnown issues with pull request:
The portable version of NVDA's
uninstall.exe
will also apply for administrator rights when running.Code Review Checklist: