RadioOptions:Function selectaction
selectactionstart:
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "menu01.ini"
!insertmacro MUI_INSTALLOPTIONS_READ ${TEMP1} "menu01.ini" "Field 1" "State"
StrCmp ${TEMP1} "1" selectactionend ""
!insertmacro MUI_INSTALLOPTIONS_READ ${TEMP1} "menu01.ini" "Field 2" "State"
StrCmp ${TEMP1} "1" selectactionend ""
MessageBox MB_ICONINFORMATION|MB_OK "You have to choose on action, otherwise 'cancel'"
Goto selectactionstart
selectactionend:
FunctionEnd
Field 1 is "Save"
Field 2 is "Restore"
(default is "Save")
If both are stated=0 (a message box normally appears) and i press "cancel" i get the cancel dialog but then i get the message box.
How can i determine that the cancel button was pressed and quit the installer/program?
There's another question:
If both are stated=0 (a message box normally appears) and i press "cancel" i get the cancel dialog (confirming YES), then the message box - then program ends up with no final page..
page custom selectaction
page custom selectsaveitems
page custom selectrestoreitems
!insertmacro MUI_PAGE_FINISH
Function selectsaveitems
!insertmacro MUI_INSTALLOPTIONS_READ ${TEMP1} "menu01.ini" "Field 1" "State"
StrCmp ${TEMP1} "1" "" selectsaveitemsskip
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "savemail.ini"
selectsaveitemsskip:
FunctionEnd
Function selectrestoreitems
!insertmacro MUI_INSTALLOPTIONS_READ ${TEMP1} "menu01.ini" "Field 2" "State"
StrCmp ${TEMP1} "1" "" selectrestoreitemsskip
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "restmail.ini"
selectrestoreitemsskip:
FunctionEnd