Version of NSIS: 3.0b3
Error Message:
!insertmacro: macro "LogTextCall" requires 1 parameter(s), passed 2!
Script that caused the error:
OutFile "test.exe"
; This so the log will be written to same dir as the test file.
; NOT recommended for actual installation files.
InstallDir "$EXEDIR"Page custom OnCustom AfterCustom
Page components
Page instfiles
Page custom ShowLog!define Log '!insertmacro LogTextCall'
!macro LogTextCall _text
LogText "${_text}"
!macroendSection one
${Log} 'In Section "One"'
SectionEnd
Are you sure you pasted the correct error message? It should read "LogText expects 1 parameters, got 2."
The problem is that
${Log} 'In Section "One"'expands toLogText "In Section "One"".You can use
${Log} 'In Section $\"One$\"'or use one of the other two quote characters in the LogTextCall macro.Diff: