|
|
#1 |
|
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! |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] 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:
Those two language strings are defined a few lines above that line in the example:code: code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
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. |
|
|
|
|
|
#4 |
|
Moderator
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 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jan 2005
Posts: 5
|
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. |
|
|
|
|
|
#6 |
|
Moderator
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 |
|
|
|
|
|
#7 |
|
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. |
|
|
|
|
|
#8 |
|
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... |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|