Archive: Multi Language License in RC1?


Multi Language License in RC1?
Hi,

I'm trying to use multi language licenses in rc1. It worked with beta4, but the way to do this seems to have changed.

What i have in my script is this

LicenseLangString LicenseFile ${LANG_ENGLISH} "support\License.EN.txt"
LicenseLangString LicenseFile ${LANG_DUTCH} "support\License.NL.txt"
LicenseLangString LicenseFile ${LANG_FRENCH} "support\License.EN.txt"
LicenseLangString LicenseFile ${LANG_GERMAN} "support\License.EN.txt"

!insertmacro MUI_PAGE_LICENSE "$(LicenseFile)"

However, no license is show and the page is empty
If I however replace the above line with:

!insertmacro MUI_PAGE_LICENSE "support\License.EN.txt"

I get the english license. What am I missing?

During compilation, i get the following warnings:

12 warnings:
LicenseLangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:75)
LicenseLangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:76)
LicenseLangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:77)
LangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:79)
LangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:80)
LangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:81)
LangString "LicenseFile" set multiple times for 0, wasting space (C:\My Projects\klavar\KlavarScript.nsi:82)
!warning: French Modern UI language file version doesn't match. Using default English texts for missing strings.
(macro:MUI_LANGUAGEFILE_END:5)
install function "CheckAdministrator" not referenced - zeroing code (0-22) out

LangString "LicenseFile" is not set in language table of language 1031
LangString "LicenseFile" is not set in language table of language 1036
LangString "LicenseFile" is not set in language table of language 1043


Regards,

Marco.


Sorry for bothering you on this forum. I already found the error, the LicenseLangString was at the wrong place in the script, before the InsertMacro's MUI_LANGUAGE, so the language codes where yet unknown.

Never mind