|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Apr 2009
Posts: 33
|
Is it possible to silently run an NSIS installer in VISTA?
I made an updater which silently runs in XP and works just fine. But when it comes to Vista, the idea of silent installation gets ruined when UAC prompts the user to cancel or allow the user from running the program.
Is there anything at all we can do about this? Thanks... |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
if you don't require admin rights, just use RequestExecutionLevel user, if you DO, there is nothing you can do about it other than starting the installer from a already elevated parent process (batchfile etc)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2009
Posts: 33
|
I used "RequestExecutionLevel user"... it does the trick for user level. But for admin, UAC prompt still comes out...
|
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
That's how UAC is supposed to work.
The only way to suppress the prompt with UAC enabled is to have an application manifest set to run as a normal user (RequestExecutionLevel user) |
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Mar 2008
Posts: 129
|
Quote:
Just a side note on batch files in Vista. I've found you have to right click them and choose "Run as admin...". If you just double click them, and they try to do something that requires admin rights, then they will often simply fail silently with a "permission denied" or a similar error(which you won't see when the console window flashes up breifly), rather than prompt for UAC. |
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
yes, it would be possible, but the service would require a UAC prompt during install (but, please, don't fill your end users systems with useless services)
Look at firefox, it will show a UAC dialog when you apply updates. IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|