Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 9th March 2010, 18:37   #1
GTVic
Junior Member
 
Join Date: Mar 2010
Posts: 6
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
GTVic is offline   Reply With Quote
Old 9th March 2010, 19:29   #2
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 569
If your installer does not need admin status make sure the script includes
code:
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.
pengyou is offline   Reply With Quote
Old 9th March 2010, 19:34   #3
GTVic
Junior Member
 
Join Date: Mar 2010
Posts: 6
Thank you very much, that worked perfectly.
GTVic is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump