Skip to content
⌘ NSIS Forum Archive

Macro Unknown

6 posts

Cran0g#

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#
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.
Anders#
Where does it say they are macros?

It does say
For example, interface settings should be defined before you insert pages
Cran0g#
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?