Old 3rd March 2005, 13:42   #1
stschulte
Junior Member
 
Join Date: Mar 2005
Posts: 3
Different files for MUI_PAGE_LICENSE?

Hello!

Sorry, but the documentation is difficult to read (online) for me and in the samples I don't find something for this problem.
I have different licence-files, but don't know how to implement:

[...]
LicenseLangString license ${LANG_ENGLISH} "Templates\license.rtf"
LicenseLangString license ${LANG_GERMAN} "Templates\lizenz.rtf"
LicenseData $(license)

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE license
[...]

... don't work :-(
Where can I found something about MUI_PAGE_LICENSE?
What can I do?

cu

Stef@n
stschulte is offline   Reply With Quote
Old 3rd March 2005, 15:03   #2
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
language strings have to be used like this:

!insertmacro MUI_PAGE_LICENSE $(license)

don't use LicenseData if used MUI macros!!
Comm@nder21 is offline   Reply With Quote
Old 7th March 2005, 11:42   #3
stschulte
Junior Member
 
Join Date: Mar 2005
Posts: 3
Well, now I have:

; Language Selection Dialog Settings
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"

LicenseLangString license ${LANG_ENGLISH} "Templates\license.rtf"
LicenseLangString license ${LANG_GERMAN} "Templates\lizenz.rtf"

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE $(license)

; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "German" ; ID = 1031
!insertmacro MUI_LANGUAGE "English" ; ID = 1033
!insertmacro MUI_RESERVEFILE_LANGDLL
; MUI end ------

... and get the Warnings:

LicenseLangString "license" set multiple times for 0, wasting space (C:\Dokumente und Einstellungen\schulte\Eigene Dateien\EPAM\EPAM3.2.nsi:26)
LangString "license" is not set in language table of language 1031

... so must I use other variables/declaration than "license"?

cu

Stef@n
stschulte is offline   Reply With Quote
Old 7th March 2005, 12:29   #4
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 571
Just move the LicenseLangString lines further down the script (they need to appear after the MUI_LANGUAGE lines).

For example:

; Language files
!insertmacro MUI_LANGUAGE "German" ; ID = 1031
!insertmacro MUI_LANGUAGE "English" ; ID = 1033

LicenseLangString license ${LANG_ENGLISH} "Templates\license.rtf"
LicenseLangString license ${LANG_GERMAN} "Templates\lizenz.rtf"

!insertmacro MUI_RESERVEFILE_LANGDLL
; MUI end ------
pengyou 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