Old 26th March 2007, 04:26   #1
DasGloy
Junior Member
 
Join Date: Mar 2007
Posts: 9
Unhappy MUI_EXTRAPAGES.nsh / Question

I'm using the "MUI_EXTRAPAGES.nsh" written by Red Wine / Major Dude to create a README window (like the license window) with the new command "mui_page_readme". This really good script based on the "mui_page_license" command. Now I have the problem, that both commands use the same bottom-text under the window (If you accept the terms of the ...etc.) . The readme-window don't need a bottom text.

Thank You
DasGloy is offline   Reply With Quote
Old 26th March 2007, 11:29   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Please check the posted here example of usage, the referred string has changed to,
code:
'$\n Click on scrollbar arrows or press Page Down to review the entire text.'

Of course this is just an example, you may add your own string or leave empty by adding empty string.

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 26th March 2007, 12:03   #3
DasGloy
Junior Member
 
Join Date: Mar 2007
Posts: 9
Hello Red Wine,
sorry...but it doesn't work.
The text ($\n Click on scrollbar arrows or press Page Down to review the entire text.') will not displayed. Only the text "If you accept the terms of the agreement, click ....etc." will be shown.

A part of my NSIS Scrip:

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE $(MUILICENSE)
!insertmacro MUI_PAGE_README $(MUIREADME)
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_DIRECTORYPAGE_VARIABLE $DATAINSTDIR
!define MUI_DIRECTORYPAGE_TEXT_TOP "$(Database_Text)"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------

; Abfrage Englisch oder Deutsch
!insertmacro MUI_LANGUAGE "German" ; Ländercode ist 1033 oder ${LANG_ENGLISH}
${ReadmeLanguage} '${LANG_GERMAN}' \
'Bitte Lesen' \
'Bitte nehmen sie folgende Informationen zur Kenntnis.' \
'Über $(^name):' \
'$\n Benutzen sie die Rollbalken oder die PageDown-Taste um den Text zu scrollen.'

!insertmacro MUI_LANGUAGE "English" ; Ländercode ist 1031 oder ${LANG_GERMAN}
${ReadmeLanguage} '${LANG_ENGLISH}' \
'Read Me' \
'Please review the following important information.' \
'About $(^name):' \
'$\n Click on scrollbar arrows or press Page Down to review the entire text.'
DasGloy is offline   Reply With Quote
Old 26th March 2007, 12:18   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
This works fine for me
code:
; Abfrage Englisch oder Deutsch
!insertmacro MUI_LANGUAGE "German" ; La"ndercode ist 1033 oder ${LANG_ENGLISH}
${ReadmeLanguage} '${LANG_GERMAN}' \
'Bitte Lesen' \
'Bitte nehmen sie folgende Informationen zur Kenntnis.' \
'Uber $(^name):' \
'$\n Benutzen sie die Rollbalken oder die PageDown-Taste um den Text zu scrollen.'

!insertmacro MUI_LANGUAGE "English" ; La"ndercode ist 1031 oder ${LANG_GERMAN}
${ReadmeLanguage} '${LANG_ENGLISH}' \
'Read Me' \
'Please review the following important information.' \
'About $(^name):' \
'$\n Click on scrollbar arrows or press Page Down to review the entire text.'


Of course I haven't german lang installed on my system though I suspect you should check the quotes and possible you need to escape some characters.

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 26th March 2007, 12:32   #5
DasGloy
Junior Member
 
Join Date: Mar 2007
Posts: 9
Hello Red Wine,
I think the problem is the command "MUI_INNERTEXT_LICENSE_BOTTOM", the defined text will displayed in both case ( LICENSE and README). Is there a possibilty to disable this command for the README.

: )
DasGloy is offline   Reply With Quote
Old 26th March 2007, 13:16   #6
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
In case you don't want text there just add an empty space, please replace the part of you code with the following and recompile, everything works just fine for me,
code:
; Abfrage Englisch oder Deutsch
!insertmacro MUI_LANGUAGE "German" ; La"ndercode ist 1033 oder ${LANG_ENGLISH}
${ReadmeLanguage} '${LANG_GERMAN}' \
"Bitte Lesen" \
"Bitte nehmen sie folgende Informationen zur Kenntnis." \
"'Uber $(^name):" \
" "

!insertmacro MUI_LANGUAGE "English" ; La"ndercode ist 1031 oder ${LANG_GERMAN}
${ReadmeLanguage} '${LANG_ENGLISH}' \
"Read Me" \
"Please review the following important information." \
"About $(^name):" \
"$\n Click on scrollbar arrows or press Page Down to review the entire text."


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 26th March 2007, 13:31   #7
DasGloy
Junior Member
 
Join Date: Mar 2007
Posts: 9
Hello Red Wine,
sorry..the same problem.

I send you a Screenshot of the result.

: (
Attached Images
File Type: jpg pic1.jpg (30.1 KB, 141 views)
DasGloy is offline   Reply With Quote
Old 26th March 2007, 13:54   #8
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Unable to reproduce the problem no matter what I've tried...
Please download and compile the attached example and see if the problem persists anyway,
Attached Files
File Type: nsi test.nsi (2.9 KB, 128 views)

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 26th March 2007, 16:09   #9
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Now that I've looked on the attached pic above, I suspect you're attempting to implement the header with a 3rd party UI.
As its name says, (MUI_EXTRAPAGES) it's tested thus fully compatible with NSIS Modern User Interface.
I haven't idea if it's compatible with other UIs nor how one could manage issues regarding to that.

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 27th March 2007, 10:40   #10
DasGloy
Junior Member
 
Join Date: Mar 2007
Posts: 9
Hello Red Wine,
thank you for help. But I think it's really a problem with the compatibility (UltraModernUI). I deactivate the bottom_text and put the content into the headerline. Now it is OK.
DasGloy 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