Archive: InstallOptions Text - Changing or eliminating


InstallOptions Text - Changing or eliminating
Hi,
I am a newbie with this NSIS package and have been racking my brain trying to do something which is probably very simple. I would like to replace or eliminate the text found when u create an installoptions page:

InstallOptions Page
This is a page created using the InstallOptions Plug-in.



Any help would be appreciated!


The MUI_HEADER_TEXT macro sets that text. You've probably not changed the following line:

!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
Those two language strings are defined a few lines above that line in the example:
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "InstallOptions page"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "This is a page created using ..."

Thank u for the prompt reply, but please excuse my ignorance. Do i need all three lines of code? I placed the following code:

;Pages

!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"

LangString TEXT_IO_TITLE ${LANG_ENGLISH} "SQL Settings"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Please enter the SQL user and configuration info below"
Page custom CustomPageA

#!insertmacro MUI_PAGE_COMPONENTS
#Page custom CustomPageB
!insertmacro MUI_PAGE_DIRECTORY
# Page custom CustomPageC
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES


It didnt do anything? I guess i am unsure of where to put it.


You're missing the first snippet of code which needs to go in your "CustomPageA" function (preferably before you call MUI_INSTALLOPTIONS_DIALOG!)

-Stu


Still dont get it
I dont think i have a "CustomPageA" function -- the only thing thtat references CustomPageA is in this group of code:

!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"

Page custom CustomPageA
#!insertmacro MUI_PAGE_COMPONENTS
#Page custom CustomPageB
!insertmacro MUI_PAGE_DIRECTORY
# Page custom CustomPageC
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

Understand that i stole this code from the sample and am modifying it for my own purposes - i am having a difficult time understanding how this works.


I doubt your script compiles at all then..?

Function CustomPageA
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
FunctionEnd

You should attempt reading the Modern UI documentation if you haven't already.

-Stu


Okay, i am dumb - i did have a CustomPageA
function - i just didnt know it. I added those three lines shown below and it still doesnt change the text. I have read the Manual and it isnt exactly clear to me how to do this. I included the lines of code below:

;Pages

!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"

LangString TEXT_IO_TITLE ${LANG_ENGLISH} "SQL Settings"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Please enter the SQL user and configuration info below"

Page custom CustomPageA
#!insertmacro MUI_PAGE_COMPONENTS
#Page custom CustomPageB
!insertmacro MUI_PAGE_DIRECTORY
# Page custom CustomPageC
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

.
.
.

Function CustomPageA
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini"

FunctionEnd


The install script works perfectly with the exception of changing this text on the custom page.


Did i mention that I am dumb? I got this working - It turns out that the lines i needed to add were already in the script file lower down in the script. I had the 2 lines:

LangString TEXT_IO_TITLE ${LANG_ENGLISH} "SQL Settings"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "Please enter the SQL user and configuration info below"

up in the pages section and then it was also lower in the script right above the Function CustomPageA

Anyhow, it works great now - thank you to all that tried to help. I really wish the documentation was more clear - i really like this install package, just wish i knew more...