NSIS2 + Modern UI + Control 'back' button
Hi,
I have an installer that have 3 custom pages w/ io, and i do some operations before and after and when the user clicks back, i want to do nothing after displaying.
note: i cant do before display the next custom page.
not using the modern ui i will try the next
Function CP_SetDBEngine
;if the section is checked continue else exit
SectionGetFlags ${SecEnvironment} $0
IntCmp $0 1 lbl_SetDBSetup_Continue
Goto lbl_SetDBSetup_Exit
lbl_SetDBSetup_Continue:
;some instructions
installoptions::show "ioDBSetup.ini"
Pop $0
StrCmp $0 "success" "" lbl_SetDBSetup_Exit
;some instructions
messagebox mb_ok "hey! it continues!"
lbl_SetDBSetup_Exit:
FunctionEnd
trying with modern ui, this code always goes lbl_SetDBSetup_Exit
Function CP_SetDBEngine
;if the section is checked continue else exit
SectionGetFlags ${SecEnvironment} $0
IntCmp $0 1 lbl_SetDBSetup_Continue
Abort
lbl_SetDBSetup_Continue:
;some instructions
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioDBSetup.ini"
Pop $0
StrCmp $0 "success" "" lbl_SetDBSetup_Exit
;some instructions
messagebox mb_ok "hey! it continues!"
lbl_SetDBSetup_Exit:
FunctionEnd
someone knows how can i do this?
thanks & sorry about my poor english :rolleyes: