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 ...")
(No difference)

Revision as of 13:44, 25 November 2011

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