Old 11th January 2005, 19:47   #1
xhomerx
Junior Member
 
Join Date: Jan 2005
Posts: 5
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!
xhomerx is offline   Reply With Quote
Old 11th January 2005, 19:55   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The MUI_HEADER_TEXT macro sets that text. You've probably not changed the following line:
code:
!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:
code:
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "InstallOptions page"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "This is a page created using ..."


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 11th January 2005, 20:07   #3
xhomerx
Junior Member
 
Join Date: Jan 2005
Posts: 5
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.
xhomerx is offline   Reply With Quote
Old 11th January 2005, 20:37   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You're missing the first snippet of code which needs to go in your "CustomPageA" function (preferably before you call MUI_INSTALLOPTIONS_DIALOG!)

-Stu
Afrow UK is offline   Reply With Quote
Old 12th January 2005, 12:26   #5
xhomerx
Junior Member
 
Join Date: Jan 2005
Posts: 5
Unhappy 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.
xhomerx is offline   Reply With Quote
Old 12th January 2005, 15:46   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 12th January 2005, 17:59   #7
xhomerx
Junior Member
 
Join Date: Jan 2005
Posts: 5
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.
xhomerx is offline   Reply With Quote
Old 12th January 2005, 19:56   #8
xhomerx
Junior Member
 
Join Date: Jan 2005
Posts: 5
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...
xhomerx 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