Skip to content
⌘ NSIS Forum Archive

diffrent RequestExecutionLevel install/uninstall

4 posts

Ema#

diffrent RequestExecutionLevel install/uninstall

Hi all,
I was wondering if it's possible to create a setup that requires admin rights so (RequestExecutionLevel admin) only in the uninstaller and not when it installs.

thanks a lot fo any tips on that
Bye
{_trueparuex^}#
Well you can first compile the installer with "RequestExecutionLevel admin", then get the uninstaller from that installer and add it to new installer with "RequestExecutionLevel user"... 🙄 Is any of this making any sense?

So instead of using WriteUninstaller you extract the uninstaller exe (which was created by the first installer) via File command.

PaR
Ema#
Yes, that could be an option.
I just thought that there was a way to do that inside one single NSIS script, but probably it's not possible to have two RequestExecutionLevel in the same script.
Thanks
pengyou#
I think you can use the UAC plugin to do what you want.

The installer runs with RequestExecutionLevel set to user and in the uninstaller you can use the UAC plugin to make the uninstaller use RequestExecutionLevel admin.

For details see http://nsis.sourceforge.net/UAC_plug-in