Prev Previous Post   Next Post Next
Old 4th April 2006, 11:36   #5
Pharaoh Atem
Junior Member
 
Join Date: Feb 2006
Posts: 35
Quote:
Originally posted by JasonFriday13
So what I understand is that you want to set a parameter depending on whether the '--user' switch is used or not. If so, use GetParameters described above, and do a strcmp on the result. This code should either be in a function or in a section.
code:

;The getparameters function here and put the result in $0

StrCmp $0 "--user" +1 DontOverwrite
WriteINIStr "$INSTDIR\overrwdef.ini" "System" "OverWrite" "1"
GoTo skip
DontOverwrite:
WriteINIStr "$INSTDIR\overrwdef.ini" "System" "OverWrite" "0"
skip:
;the rest of code here

How do I set the GetPeraters function, I'm using:
PHP Code:
${GetParameters} $
When I use it before the INI settings, it saying the GetPerameters is invalid?
Pharaoh Atem is offline   Reply With Quote
 
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