Archive: Change text on components page


Change text on components page
Are there any means to remove the "Or, select the optional components you wish to install" text on the MUI_PAGE_COMPONENTS page?

Kind regards,
Chris


as written in the docs:

MUI_COMPONENTSPAGE_TEXT_TOP text
Text to display on the top of the page.

MUI_COMPONENTSPAGE_TEXT_COMPLIST text
Text to display on next to the components list.

MUI_COMPONENTSPAGE_TEXT_INSTTYPE text
Text to display on next to the installation type combo box.

MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE text
Text to display on the of the top of the description box.

MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO text
Text to display inside the description box when no section is selected.


Thanks for the immediate reply!


I don't understand where to put

MUI_COMPONENTSPAGE_TEXT_TOP text
Text to display on the top of the page.

MUI_COMPONENTSPAGE_TEXT_COMPLIST text
Text to display on next to the components list.

MUI_COMPONENTSPAGE_TEXT_INSTTYPE text
Text to display on next to the installation type combo box.

MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE text
Text to display on the of the top of the description box.

MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO text
Text to display inside the description box when no section is selected.
where do i put them and where do i put the costom txt i want it to show at ?

Like this
MUI_COMPONENTSPAGE_TEXT_TOP "is this correct ?"

I tried something like that and i put it under the pages but it just gave me errors ?

From the MUI Readme (section 3: Pages):

Page Settings apply to a single page and should be set before inserting a page macro. If you have multiple pages of one type and you want to set a setting for all them, put the setting before each page macro. Example:

;Add a directory page to let the user specify a plug-ins folder
;Store the folder in $PLUGINS_FOLDER

Var PLUGINS_FOLDER
!define MUI_DIRECTORYPAGE_VARIABLE $PLUGINS_FOLDER
!insertmacro MUI_PAGE_DIRECTORY

Note: There is no diference between installer and uninstaller page settings.


I don't understand ? how do i get the costom txt on there.
I should tell you i am very new to nsi and am sorry if i ask a lot of questions.


I found the example scripts which come with NSIS were a great help in understanding how to use NSIS.

To change the text on one of the MUI pages, you use some "define" statements before the page macro.

For example, to change the text on the MUI components page you need something like this:

!define MUI_COMPONENTSPAGE_TEXT_TOP "My special text"
!insertmacro MUI_PAGE_COMPONENTS

If you want to change more than one thing on the page, insert the necessary "define" lines then the page macro:
!define MUI_COMPONENTSPAGE_TEXT_TOP "My custom text"
!define MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE "more custom text"

!insertmacro MUI_PAGE_COMPONENTS

The MUI Readme describes the various MUI pages and how to customise the text on them.

Thank you for your help.