Skip to content
⌘ NSIS Forum Archive

Avoiding UAC

3 posts

GTVic#

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#
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.32

If your script does NOT include a "RequestExecutionLevel" command then Windows will assume it requires admin status and display the UAC prompt.