|
|
|
|
#1 |
|
Member
Join Date: Aug 2002
Location: Pune, India
Posts: 73
|
How to change the License page title and sub-title
Hi, I wanted (and managed after some effort
) to change the title texts on the license page..."License Agreement" -- to --> "General Information" and the subtitle text "Please review..." -- to --> "Read the general information and enjoy !!!". I want to know if what I did is the right way to do it, or is there a better (correct ?) way of doing it ? This is what I did... in my script: --- code --- . . . !define MUI_TEXT_LICENSE_TITLE "General Information" !define MUI_TEXT_LICENSE_SUBTITLE "Read the general information and enjoy !!!" ;befor !insertmacro MUI_LANGUAGE "English" . . . --- code --- I did the following changes to the file "English.nsh" --- code --- . . . !ifndef MUI_TEXT_LICENSE_TITLE <-- my change !define MUI_TEXT_LICENSE_TITLE "License Agreement" !endif <-- my change !ifndef MUI_TEXT_LICENSE_SUBTITLE <-- my change !define MUI_TEXT_LICENSE_SUBTITLE "Please review the license terms before installing $(^NameDA)." !endif <-- my change . . . ---- code ---
|
|
|
|
|
|
#2 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
You only have to define MUI_PAGE_HEADER_TEXT and
MUI_PAGE_HEADER_SUBTEXT before inserting the page macro, there is no need to modify any language files. |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: May 2006
Posts: 4
|
I have tried and I just can't change it without changing the language file too. Here's my code:
Quote:
I have tried placing the block in different positions and can't get it to work. Is there a bug or is it my code. |
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Sep 2004
Location: Nottingham
Posts: 263
|
Yeah I've had a similar problem too with this sort of thing. Language defines being ignored or erroring, depending on whether the define is before the page macro or after.
I got bored of it and started making custom language files instead. Last edited by RobGrant; 22nd May 2006 at 15:22. |
|
|
|
|
|
#5 | |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Quote:
before inserting the page macro Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: May 2006
Posts: 4
|
When I move it to before the page insert I get lots of lines about LangString "MUI_UNTEXT_FINISH_TITLE" is not set in language table of language English, etc.
When I move the !insertmacro MUI_LANGUAGE "English" line after the page macro it gives me the line about !define: "MUI_TEXT_LICENSE_TITLE" already defined!. When I paste the code in as per this post As per post http://forums.winamp.com/showthread....readid=246754. I get the !define: "MUI_TEXT_LICENSE_TITLE" already defined! too. |
|
|
|
|
|
#7 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
You're right, you should make it like this:
!define MUI_PAGE_HEADER_TEXT "Readme File" !define MUI_PAGE_HEADER_SUBTEXT "Please review the readme file before installing $(^NameDA)." !define MUI_LICENSEPAGE_TEXT_TOP "Press Page Down to see the rest of the readme file." !define MUI_LICENSEPAGE_TEXT_BOTTOM "When you have finished reading, click on Next to start installing." Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2006
Posts: 4
|
That works. You are cool. Thanks for the help.
Can you tell me if this is a change or was I always wrong? |
|
|
|
|
|
#9 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
It is because we both did not read documentation carefully :-)
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#10 | ||
|
Senior Member
Join Date: Sep 2004
Location: Nottingham
Posts: 263
|
Quote:
Quote:
|
||
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Apr 2008
Posts: 21
|
I had read some threats on this subject to get a solution.
Thanks to RedWine, he confirmed that it is not my fault but a bug in NSIS I tried to make a "clean" License Page but i couldn get rid of the Line: "If you accept the terms of the agreement, click I Agree to continue. You must accept the agreement to install $(^NameDA)." thats because it is not possible to do a "" with MUI_LICENSEPAGE_TEXT_BOTTOM to make it clear- this does NOT work: code: and this does work! (space sign) code: i just want to mention it for other users... bye |
|
|
|
|
|
#12 | |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
This is not a bug, but a feature. MUI uses LicenseText underneath which states:
Quote:
Stu |
|
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
hi
if code does word? for Change change title and sub-title page license Should Use From what code? |
|
|
|
|
|
#14 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Quote:
Even if English is not your first language, random uppercased letters tells me that you did not put a lot of effort into this post. IntOp $PostCount $PostCount + 1 |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|