Hello again.
Once again i need help from more experienced users.
Code:
Function .onInit
StrCpy $1 ${SEC02}
FunctionEnd
Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${SEC02}
!insertmacro RadioButton ${SEC03}
!insertmacro RadioButton ${SEC04}
!insertmacro RadioButton ${SEC05}
!insertmacro RadioButton ${SEC06}
!insertmacro EndRadioButtons
FunctionEnd
;################
Section
${if} $1 $SEC02
StrCpy $Product "14015"
${elseif} $1 $SEC03
StrCpy $Product "14101"
${elseif} $1 $SEC04
StrCpy $Product "81001"
${elseif} $1 $SEC05
StrCpy $Product "81200"
${else}
StrCpy $Product "90207"
${EndIf}
SectionEnd
I need to somehow check which of the RadioButtons are checked and on that condition define the variable Product.
;I understand that ${if} $1 $SEC02 is wrong, but how do i ;check this condition?
In this code i've got error "macro "_If" requires 4 parameter(s), passed 3!"
Please help me.
Best regards.
Variable defining
5 posts
LogicLib header (logiclib.nsh) which is located at Include directory has a short description about available statements, you should take a look on that.
For the above referred case it is ${if} $1 == $SEC02
For the above referred case it is ${if} $1 == $SEC02
It's also ${SEC02}
Stu
Stu
Right Stu 😁
Gosh! hot days make me blind 😕
Gosh! hot days make me blind 😕
Thanks men. It works.
Just thinking about sleeping more then 4 hours... 😉
Just thinking about sleeping more then 4 hours... 😉