Archive: How can NSIS set "run this program as administrator"


How can NSIS set "run this program as administrator"
Hi,

On Vista, I need the installer to set "run this program as administrator" on some of the files being installed by the installer. I could not find the answer in the NSIS documentation. Does anyone know how to do this?

Thank you in advance!


Do you want NSIS to run those files as admin (once), or do you want those files to always pop up an admin request when they are run by the user?


first hit when searching for "shortcut admin": http://forums.winamp.com/showthread....57#post2254657 (the flag you want is SLDF_RUNAS_USER)


> Do you want NSIS to run those files as admin (once)
No

> or do you want those files to always pop up an admin
> request when they are run by the user?
Yes

Thank you.