Reference/!macro: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (→!macro) |
m (→!macro) |
||
Line 11: | Line 11: | ||
!macroend</highlight-nsis> | !macroend</highlight-nsis> | ||
''Command introduced with NSIS | ''Command introduced with NSIS v1.8'' |
Revision as of 21:12, 5 June 2013
!macro
macro_name [parameter][...]
Creates a macro named 'macro_name'. All lines between the !macro and the !macroend will be saved. To insert the macro later on, use !insertmacro. !macro definitions can have one or more parameters defined. The parameters may be accessed the same way a !define would (e.g. ${PARMNAME}) from inside the macro.
!macro SomeMacro parm1 parm2 parm3 DetailPrint "${parm1}" MessageBox MB_OK "${parm2}" File "${parm3}" !macroend
Command introduced with NSIS v1.8