|
|
#1 |
|
Junior Member
Join Date: Jun 2009
Posts: 2
|
Hi everyone, first of all I'll ask you to excuse my English (yes, I'm French
).I've got some troubles to make the UAC Plugin working... I've read the following page : http://nsis.sourceforge.net/UAC_plug-in And after having downloaded the zip file and read the examples given in it, I compiled them but none succeeded... Then I just tried to insert the code given in the page in my .nsi : First : PHP Code:
Then PHP Code:
PHP Code:
But when I try to compile, I've got the following error : Function: ".OnInit" Invalid command: UAC::RunElevated Error in script "C:\Users\Me\MyFolder\MyScript.nsi" on line 156 -- aborting creation process I think I've missed something, the file UAC.nsh is in the same directory as the script (MyFolder). Can anybody try to help me please ?
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Put UAC.dll in the Plugins folder.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2009
Posts: 2
|
Thanks for you answer,
I'm going to test and let you know... |
|
|
|
|
|
#4 | |
|
Junior Member
Join Date: Jan 2005
Location: Paris, France
Posts: 8
|
Quote:
In the package there's actually two UAC.dll, one in a A/ directory and one in U/. I put the A one in Plugins (for no worthwhile reason) and when the installer asks for elevation it does so with a weird (random/temp) name. Should I have used the one in U/ (and does anyone know what the difference is ?) |
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,775
|
A=ansi (normal official nsis)
U=unicode (3rd party nsis version) The installer command should look something like: c:\path\installer.exe /UAC:1234 /NCRC The uninstaller on the other hand might be in %temp% and have a weird name, but thats how NSIS does it IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|