- Lots of small fixes

- b1 history complete


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2129 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-02-08 22:42:09 +00:00
parent 383b780271
commit 45549a0bd4
7 changed files with 62 additions and 16 deletions

View file

@ -21,15 +21,15 @@ If you don't use any Page command the installer pages order will be just as in o
\S{pagecallbacks} Callbacks
Each built-in page has two callback functions. The pre-function and the post-creation function. The pre-function is called right before the page is created and the post-function is called right after it is created and before it is showed so you can tweak its user interface with CreateFont (\K{createfont}), SetStaticBkColor (\K{setstaticbkcolor}) and SendMessage (\K{sendmessage}).
Each built-in page has three callback functions. The pre-function, the show-creation function and the leave-function. The pre-function is called right before the page is created, the show-function is called right after it is created and before it is showen so you can tweak its user interface with CreateFont (\K{createfont}), SetStaticBkColor (\K{setstaticbkcolor}) and SendMessage (\K{sendmessage}); the leave-function is called right after the user has pressed the next button and before the page is left.
A custom page has only one callback function that creates it but unlike the built-in pages this function is mandatory.
Use Abort (see \K{abort}) from a built-in page pre-function to skip the page.
Use Abort (see \K{abort}) from a built-in page's pre-function to skip the page, and from a built-in page's leave-function to stay in the page.
Examples:
\c Page license skipLicense
\c Page license skipLicense "" stayInLicense
\c Page custom customPage ": custom page"
\c Page instfiles
\c
@ -39,6 +39,12 @@ Examples:
\c no:
\c FunctionEnd
\c
\c Function stayInLicense
\c MessageBox MB_YES "Do you want to stay in the license page?" IDNO no
\c Abort
\c no:
\c FunctionEnd
\c
\c Function customPage
\c GetTempFileName $R0
\c File /oname=$R0 customPage.ini
@ -53,12 +59,12 @@ Examples:
\S{page} Page
\c (custom function [caption]) | ((license|components|directory|instfiles) [pre_function] [post_function])
\c (custom function [caption]) | ((license|components|directory|instfiles) [pre_function] [show_function] [leave_function]) [define_if_last]
Adds an installer page. See the above sections for more information about built-in versus custom pages and about callback functions.
Adds an installer page. See the above sections for more information about built-in versus custom pages and about callback functions. If define_if_last is specified, the parameter will be !defined if the page turns out to be the last page before a instfiles page. This helps you decide on dynamic scripts (such as the Modern UI script) what to put in this page's text, "click the install button to start installation" or "click next to continue" for example.
\S{uninstpage} UninstPage
\c (custom function [caption]) | ((uninstConfirm|instfiles) [pre_function] [post_function])
\c (custom function [caption]) | ((uninstConfirm|instfiles) [pre_function] [show_function] [leave_function]) [define_if_last]
Adds an uninstaller page. See the above sections for more information about built-in versus custom pages and about callback functions.
Adds an uninstaller page. See the above sections for more information about built-in versus custom pages and about callback functions. See Page for an explanation about define_if_last.