Reference/Function: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=Function= [function_name] Begins and opens a new function. Function names beginning with "." (e.g. ".Whatever") are generally reserved for callback functions. Function names ...")
 
mNo edit summary
 
Line 12: Line 12:
   Call func
   Call func
SectionEnd</highlight-nsis>
SectionEnd</highlight-nsis>
''Command introduced with NSIS v1.3''

Latest revision as of 20:22, 4 June 2013

Function

[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.

Function func
  # some commands
FunctionEnd
 
Section
  Call func
SectionEnd

Command introduced with NSIS v1.3