![]() |
#1 |
Junior Member
Join Date: May 2022
Posts: 8
|
Macro Unknown
Hi Folks,
I'm trying to set the header text of one of the pages. I'm using: !insertmacro MUI_LICENSEPAGE_TEXT_TOP text But, when compiling, NSIS throws a fatal error saying that no such macro exists. I know that the details on the help page is not exactly accurate, but does anyone know how this macro should be written? Many thanks. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,483
|
It's a define, not a macro.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2022
Posts: 8
|
![]()
Thanks for your help. The thing is that both the web documents and the help page both show this as a macro. NSIS is a great tool with a lot of potential but if the documentation is just plain wrong like this it limits its use enormously. Both sources badly need updating.
|
![]() |
![]() |
![]() |
#4 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,483
|
Where does it say they are macros?
It does say Quote:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: May 2022
Posts: 8
|
InsertMacro
Hi Anders,
This is what mis-led me (and tehre are a few of them): Insert the following macros to set the pages you want to use. The pages will appear in the order in which you insert them in the script. You can also insert custom Page commands between the macros to add custom pages. You can add multiple pages of certain types (for example, if you want the user to specify multiple folders). Examples: !insertmacro MUI_PAGE_LICENSE "License.rtf" !insertmacro MUI_PAGE_COMPONENTS Var StartMenuFolder !insertmacro MUI_PAGE_STARTMENU "Application" $StartMenuFolder Or am I just reading this wrongly? |
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,483
|
The pages are macros, the settings for the UI are defines.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|