updated docs, tutorial, changelog

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2281 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2003-03-11 19:26:41 +00:00
parent 72a48c4afc
commit 39a9897cd8
5 changed files with 62 additions and 29 deletions

View file

@ -1,9 +1,17 @@
\H{functions} Functions
Functions are like similar to Sections in that they contain zero or more instructions. Functions are not called by the installer directly, instead they are called from Sections using the Call instruction (Note: there are some special Callback Functions that can be called by the installer directly).
Functions are like similar to Sections in that they contain zero or more instructions. User functions are not called by the installer directly, instead they are called from Sections using the Call instruction. Callback functions will be called by the installer when a certain event occurs.
\b Functions must be declared outside of Sections or other Functions.
Functions must be declared outside of Sections or other Functions.
\b Function names beginning with "." (e.g. ".Whatever") are generally reserved for callback functions.
\S1{ffunctioncommands} Function Commands
\b Function names beginning with "un." are functions that will be generated in the Uninstaller. Hence, normal install Sections and functions cannot call uninstall functions, and the Uninstall Section and uninstall functions cannot call normal functions.
\S2{ffunction} Function
\c [function_name]
Begins and opens a new function. Function names beginning with "." (e.g. ".Whatever") are generally reserved for callback functions. Function names beginning with "un." are functions that will be generated in the Uninstaller. Hence, normal install Sections and functions cannot call uninstall functions, and the Uninstall Section and uninstall functions cannot call normal functions.
\S2{ffunctionend} FunctionEnd
This command closes the current open function.