Old 5th September 2011, 15:57   #1
SteveRussell
Senior Member
 
Join Date: Mar 2006
Location: United States
Posts: 109
(Ignore this post. I had inserted code before includes.):

Thank you. I'm getting an error:

Function: ".onInit"
File: "UserInfo.dll"->"$PLUGINSDIR\UserInfo.dll" [compress] 1336/4096 bytes
Plugin Command: GetAccountType
Pop: $0
Invalid command: ${If}

------

Function .onInit
UserInfo::GetAccountType
Pop $0
${If} $0 != "Admin"
MessageBox MB_OK "Your system requires administrative permissions in order to install this software."
Quit
${EndIf}
FunctionEnd

Last edited by SteveRussell; 5th September 2011 at 16:02. Reason: Realized code block had been inserted before includes
SteveRussell is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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