|
|
#1 | |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Is RequestExecutionLevel a COMPILE-TIME directive?
I tried using RequestExecutionLevel in .onInit but the compiler gave me this error:
Quote:
If so, what can I do to implement a pretty unique installer that "Requests ExecutionLevel" based on whether the logged in user has Administrator privileges? I would like to implement this somewhat "smart" installer that changes its behavior based on the account type (i.e. admin vs. limited). Is this possible without resorting to write the installer entirely in win32 C or C++? |
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Nov 2005
Posts: 113
|
It creates an embedded XML manifest for Vista and later in the .exe, specifying what privileges are required.
You can look into multiuser.nsh; look in the C:\Program Files\NSIS\Docs\MultiUser folder for usage instructions. |
|
|
|
|
|
#3 | ||
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
redxii, thanks for your answer. I know how to use RequestExecutionLevel and I have been using it successfully in quite a few installers. I just want to confirm my understanding that it is a compile-time directive and that there is no way to tell Vista something like this:
Quote:
Quote:
Thanks! |
||
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,775
|
yes, it is compile time
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|