GTVic
9th March 2010 19:37 UTC
Avoiding UAC
On our corporate systems, you cannot run an install without elevating to admin status. The UAC dialog comes up every time.
However, not all installs require admin rights. For example, the "hello world" sample script does nothing except display a messagebox.
If the install does not require admin rights, is there a way to get it to run without the UAC dialog appearing?
Thanks
pengyou
9th March 2010 20:29 UTC
If your installer does not need admin status make sure the script includes
RequestExecutionLevel user
See the NSIS User Manual for details:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1.32If your script does NOT include a "RequestExecutionLevel" command then Windows will assume it requires admin status and display the UAC prompt.
GTVic
9th March 2010 20:34 UTC
Thank you very much, that worked perfectly.