![]() |
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 --- :) :( |
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. |
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. |
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. |
Quote:
before inserting the page macro |
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. |
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." |
That works. You are cool. Thanks for the help.
Can you tell me if this is a change or was I always wrong? |
It is because we both did not read documentation carefully :-)
|
Quote:
Quote:
|
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 |
This is not a bug, but a feature. MUI uses LicenseText underneath which states:
Quote:
Stu |
hi
if code does word? for Change change title and sub-title page license Should Use From what code? |
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. |
| All times are GMT. The time now is 17:41. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.