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...") |
(wiki link and formating) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
macro_name [parameter] [...] | 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. | Inserts the contents of a macro that was created with <code>[[Reference/!macro|!macro]]</code>. If the macro was created with parameters, then you must pass as many parameters to the macro as it requires. | ||
<highlight-nsis>!macro Print text | <highlight-nsis>!macro Print text | ||
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'' |
Latest revision as of 11:42, 11 December 2017
!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