Ema
31st August 2008 11:29 UTC
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^}
31st August 2008 20:22 UTC
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"... :rolleyes: 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
1st September 2008 08:53 UTC
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
1st September 2008 11:38 UTC
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