Added description for Ifabort, modified SectionSetText, added Errorlevel description

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2477 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
flizebogen 2003-04-21 18:52:31 +00:00
parent 36acb0df4a
commit 0b9c1c4d3d
3 changed files with 29 additions and 1 deletions

View file

@ -44,6 +44,13 @@ If +offset or -offset is specified, jump is relative by offset instructions. Got
If a user variable is specified, jumps to absolute address (generally you will want to get this value from a function like GetLabelAddress). Compiler flag commands and SectionIn aren't instructions so jumping over them has no effect.
\S2{ifabort} IfAbort
\c label_to_goto_if_abort [label_to_goto_if_no_abort]
If abort is called it will "return" true. This can happen if the user choose abort on a file that failed to create (or overwrite) or if the user aborted by hand. This function can only be called from the leave function of the instfiles \R{page}{page}.
\S2{iferrors} IfErrors
\c jumpto_iferror [jumpto_ifnoerror]

View file

@ -18,7 +18,7 @@ Retrieves the section's flags. See above for a description of the flag. The erro
\c section_index section_text
Sets the description for the section section_index. To set a subsection, you must use - at the beginning of the text. The error flag will be set if an out of range section is specified.
Sets the description for the section section_index. To set a subsection, you must use - at the beginning of the text. If the Text is set to "" than the section will be hidden. The error flag will be set if an out of range section is specified.
\S2{sectiongettext} SectionGetText

View file

@ -7,6 +7,27 @@ If you want to compile NSIS by yourself you have to install the Sources. The Sou
\\<b\\>Note: If your using Visual C 6.0 you have to update the \W{http://www.microsoft.com/msdownload/platformsdk/sdkupdate/}{Platform SDK} to avoid crashes when using CopyFiles. See \W{http://forums.winamp.com/showthread.php?s=&threadid=131964}{here} for further informations. You should also install the \W{http://msdn.microsoft.com/vstudio/downloads/ppack/default.asp}{Processor Pack} for decreasing the excutable Size.\\</b\\>
\H{errorlevels}Errorlevels
Like any other program installers made by NSIS return errorlevels as a result of their execution. Very useful if you call an NSIS Installer from within an other installer with \R{execwait}{Execwait}.
On normal Installers:
\b 0 for normal execution
\b 1 for User Abort
\b 2 for Script Abort
On silent Installers:
\b 0 for normal execution
\b 1 for User Abort
\b 1 for Script Abort
\H{useful_add_uninst_infos}Add uninstall information to Add/Remove Programs
Create a key with your product name under \\<b\\>HKLM/Software/Microsoft/Windows/CurrentVersion/Uninstall\\</b\\> to add entries to the "Add/Remove Programs" section in the Control Panel.