Reference/!insertmacro: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=!insertmacro= macro_name [parameter] [...] Inserts the contents of a macro that was created with !macro. If the macro was created with parameters, then you must pass as ma...")
 
Line 10: Line 10:
!insertmacro Print "some text"
!insertmacro Print "some text"
!insertmacro Print "some more text"</highlight-nsis>
!insertmacro Print "some more text"</highlight-nsis>
''Command introduced with NSIS v1.8''

Revision as of 21:11, 5 June 2013

!insertmacro

macro_name [parameter] [...]

Inserts the contents of a macro that was created with !macro. If the macro was created with parameters, then you must pass as many parameters to the macro as it requires.

!macro Print text
  DetailPrint "${text}"
!macroend
!insertmacro Print "some text"
!insertmacro Print "some more text"

Command introduced with NSIS v1.8