Skipping Pages: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(should have been here a long time ago...) |
(No difference)
|
Revision as of 20:14, 20 August 2005
To skip a page, use Abort in the pre callback function.
To define a pre callback function, use the Page command. For example:
Name skip OutFile skip.exe InstallDir $TEMP Page components Page directory dirPre Page instfiles Section SectionEnd Function dirPre MessageBox MB_YESNO "Skip directory page?" IDNO noskip Abort noskip: FunctionEnd
When using the Modern UI, use the MUI_PAGE_CUSTOMFUNCTION_PRE define. For example:
!include "MUI.nsh" Name skip OutFile skip.exe InstallDir $TEMP !insertmacro MUI_PAGE_COMPONENTS !define MUI_PAGE_CUSTOMFUNCTION_PRE dirPre !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_LANGUAGE "English" Section SectionEnd Function dirPre MessageBox MB_YESNO "Skip directory page?" IDNO noskip Abort noskip: FunctionEnd