SectionGetText
I am trying to use SectionGetText to pass the name of a section (it can either be the name or string associated with it) to a macro. I have looked at the documentation, this forum, and the usage in the compiler and all tell me to do different things. Here is an example of what I have:
!Macro hello
MessageBox MB_OK "$yesno"
!macroend
Section "Start Menu Shortcuts" Shortcuts
SectionGetText ${Shortcuts} $yesno
!insertmacro hello
SectionEnd
I get the error:
Section: "Start Menu Shortcuts" ->(Shortcuts)
Usage: SectionGetText section_index $(user_var: output text)
Error in script "P:\Kitcam\software\ctinstaller\ct_installer-0.9.13-jacktesting.nsi" on line 122 -- aborting creation process
I know there must be some simple syntax that I am missing but I have tried everything I can think of. Another perspective on this would be great.
Jack