Old 28th February 2004, 18:30   #1
shantanu_gadgil
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 ---

shantanu_gadgil is offline   Reply With Quote
Old 29th February 2004, 10:42   #2
Joost Verburg
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.
Joost Verburg is offline   Reply With Quote
Old 22nd May 2006, 14:52   #3
MarkDecaf
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:
; Load up the Individual Wizard Screens
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\$(AppName)_${APPVERSION}\readme.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

; Load up the Uninstall Wizard Screens
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

; Set languages (first is default language)
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_LANGDLL

; Change the Defult License Agreement to Look like a Readme Dialog
!define MUI_TEXT_LICENSE_TITLE "Readme File"
!define MUI_TEXT_LICENSE_SUBTITLE "Please review the readme file before installing $(^NameDA)."
!define MUI_INNERTEXT_LICENSE_TOP "Press Page Down to see the rest of the readme file."
!define MUI_INNERTEXT_LICENSE_BOTTOM "When you have finished reading, click on Next to start installing."
When I compile with this code it ignores the changes and sticks in the default code. When I place the !insertmacro MUI_LANGUAGE "English" after the updated !define statements then I get a notice that the variable is already defined.

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.
MarkDecaf is offline   Reply With Quote
Old 22nd May 2006, 15:01   #4
RobGrant
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.
RobGrant is offline   Reply With Quote
Old 22nd May 2006, 15:33   #5
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Quote:
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.
Did anybody read Joost's post?
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
Red Wine is offline   Reply With Quote
Old 22nd May 2006, 15:44   #6
MarkDecaf
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.
MarkDecaf is offline   Reply With Quote
Old 22nd May 2006, 16:04   #7
Red Wine
Forum King
 
Red Wine's Avatar
 
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
Red Wine is offline   Reply With Quote
Old 22nd May 2006, 16:13   #8
MarkDecaf
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?
MarkDecaf is offline   Reply With Quote
Old 22nd May 2006, 16:17   #9
Red Wine
Forum King
 
Red Wine's Avatar
 
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
Red Wine is offline   Reply With Quote
Old 23rd May 2006, 07:30   #10
RobGrant
Senior Member
 
Join Date: Sep 2004
Location: Nottingham
Posts: 263
Quote:
Originally posted by RobGrant
depending on whether the define is before the page macro or after.
Quote:
Originally posted by Red Wine
Did anybody read Joost's post?
before inserting the page macro
Yep!
RobGrant is offline   Reply With Quote
Old 8th April 2011, 21:41   #11
Smurge
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:
!define MUI_PAGE_HEADER_TEXT "blah"
!define MUI_PAGE_HEADER_SUBTEXT ""
!define MUI_LICENSEPAGE_TEXT_TOP ""
!define MUI_LICENSEPAGE_TEXT_BOTTOM ""



and this does work! (space sign)

code:
...
!define MUI_LICENSEPAGE_TEXT_BOTTOM " "




i just want to mention it for other users...
bye
Smurge is offline   Reply With Quote
Old 8th April 2011, 22:37   #12
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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:
The default string will be used if a string is empty ("").
I suppose a note in the MUI readme wouldn't hurt though.

Stu
Afrow UK is offline   Reply With Quote
Old 14th January 2014, 03:44   #13
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
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?
r2du-soft is offline   Reply With Quote
Old 14th January 2014, 06:01   #14
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
Quote:
Originally Posted by r2du-soft View Post
hi
if code does word?
for Change change title and sub-title page license Should Use From what code?
It is pretty much impossible to understand what you mean, try again in...English...

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
Anders 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