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} $0
When I use it before the INI settings, it saying the GetPerameters is invalid?