Old 20th May 2022, 12:19   #1
Cran0g
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.
Cran0g is offline   Reply With Quote
Old 20th May 2022, 14:53   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
It's a define, not a macro.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st May 2022, 11:46   #3
Cran0g
Junior Member
 
Join Date: May 2022
Posts: 8
Angry Bad Documentation

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.
Cran0g is offline   Reply With Quote
Old 21st May 2022, 21:59   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
Where does it say they are macros?

It does say
Quote:
For example, interface settings should be defined before you insert pages

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 22nd May 2022, 12:40   #5
Cran0g
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?
Cran0g is offline   Reply With Quote
Old 22nd May 2022, 15:49   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
The pages are macros, the settings for the UI are defines.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump