need help: recourse IO on condition red
Something like that:
Function selecticons
selecticons0:
!insertmacro MUI_HEADER_TEXT "Links" "Make choice"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "menu01.ini"
!insertmacro MUI_INSTALLOPTIONS_SHOW
StrCpy $R3 0 ; reset any fileflag
!insertmacro MUI_INSTALLOPTIONS_READ $R2 "menu01.ini" "Field 1" "State"
IntOp $R3 $R2 + $R3
!insertmacro MUI_INSTALLOPTIONS_READ $R2 "menu01.ini" "Field 2" "State"
IntOp $R3 $R2 + $R3
!insertmacro MUI_INSTALLOPTIONS_READ $R2 "menu01.ini" "Field 3" "State"
IntOp $R3 $R2 + $R3
!insertmacro MUI_INSTALLOPTIONS_READ $R2 "menu01.ini" "Field 4" "State"
IntOp $R3 $R2 + $R3
StrCmp $R3 0 0 selecticons2end
; no selection made - quit ?
; show confirmation button
StrCpy $R3 1 ; set any fileflag
MessageBox MB_ICONEXCLAMATION|MB_YESNO|MB_DEFBUTTON2 "bla no choice - abort ?" IDNO selecticons2end
Quit
Goto selecticons0 ; start over
selecticons2end:
FunctionEnd
shit happens - it does not recourse the IO.
The script always continue with MUI_PAGE_DIRECTORY instead calling the IO again.
!insertmacro MUI_PAGE_LICENSE
page custom selecticons
!insertmacro MUI_PAGE_DIRECTORY
thx
~~~~~~~~~~~~~~
fooled myself after this night
the correct script - wrong jump...
; show confirmation button
StrCpy $R3 1 ; set any fileflag
MessageBox MB_ICONEXCLAMATION|MB_YESNO|MB_DEFBUTTON2 "Sie haben keine Icons ausgewählt.$\nMöchten Sie die Installation abbrechen ?" IDNO selecticons0
Quit
selecticons2end: