leave function in MUI
could not find this in the MUI docs (it should include some examples), how is the syntax for adding a leave function for the components page?
8 posts
this only works partly. when i select one of the section and want to proceed, the warning pops up. selecting 'No' i get back to the components page. when i don't select any of the sections the warning keeps popping up. this only happens when i previously got a warning and not when i never selected on the sections.Function compLeaveFunc
SectionGetFlags "${SecDelete}" $0
#MessageBox MB_OK "$0"
StrCmp $0 "2" End ; 2=none (?)
MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONEXCLAMATION "You have \
selected to delete some files, which can not be \
restored. Do you want to proceed?" IDYES End
Abort
End:
FunctionEnd
the warning should popup when at least one subsection has been selectedFunction compLeaveFunc
!insertmacro SectionFlagIsSet ${SecDelete} "2" Warning End
Warning:
MessageBox MB_YESNO|MB_DEFBUTTON2|MB_ICONEXCLAMATION "You have \
selected to delete some files, which can not be \
restored. Do you want to proceed?" IDYES End
Abort
End:
FunctionEnd