Even easier paging system, no more Abort and Quit from custom pages creator functions, NSIS does it all!
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1636 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
35b45db225
commit
297e981d32
17 changed files with 123 additions and 335 deletions
|
@ -61,21 +61,22 @@ FunctionEnd
|
|||
|
||||
Function SetCustom
|
||||
|
||||
;Display the Install Options dialog
|
||||
;Display the Install Options dialog
|
||||
|
||||
Push ${TEMP1}
|
||||
Push ${TEMP1}
|
||||
|
||||
InstallOptions::dialog "$PLUGINSDIR\test.ini"
|
||||
Pop ${TEMP1}
|
||||
|
||||
StrCmp ${TEMP1} "cancel" "" +3
|
||||
Pop ${TEMP1}
|
||||
Quit
|
||||
StrCmp ${TEMP1} "cancel" done
|
||||
StrCmp ${TEMP1} "back" done
|
||||
StrCmp ${TEMP1} "success" 0 error
|
||||
# User clicked Next, all fields validated, read stuff from the INI here or later
|
||||
Goto done
|
||||
|
||||
error:
|
||||
MessageBox MB_OK|MB_ICONSTOP "InstallOptions error:$\r$\n${TEMP1}"
|
||||
|
||||
done: Pop ${TEMP1}
|
||||
|
||||
StrCmp ${TEMP1} "back" "" +3
|
||||
Pop ${TEMP1}
|
||||
Abort
|
||||
|
||||
Pop ${TEMP1}
|
||||
|
||||
FunctionEnd
|
Loading…
Add table
Add a link
Reference in a new issue