Reference/Call: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "=Call= function_name | :label_name | user_var(input) Calls the function named function_name, the label named label_name, or a variable that specifies an address. An address is...") |
mNo edit summary |
||
Line 20: | Line 20: | ||
DetailPrint "#3: The global label was called" | DetailPrint "#3: The global label was called" | ||
SectionEnd</highlight-nsis> | SectionEnd</highlight-nsis> | ||
''Command introduced with NSIS v1.3'' |
Latest revision as of 20:21, 4 June 2013
Call
function_name | :label_name | user_var(input)
Calls the function named function_name, the label named label_name, or a variable that specifies an address. An address is returned by GetCurrentAddress, GetFunctionAddress or GetLabelAddress. A call returns when it encounters a Return instruction. Sections and functions are automatically ended with a Return instruction. Uninstall functions cannot be called from installer functions and sections, and vice-versa.
Function func Call :label DetailPrint "#1: This will only appear 1 time." label: DetailPrint "#2: This will appear before and after message #1." Call :.global_label FunctionEnd Section Call func Return .global_label: DetailPrint "#3: The global label was called" SectionEnd
Command introduced with NSIS v1.3