Archive: License file based on a language and a sub language


License file based on a language and a sub language
Hi, I've been really impressed with NSIS and this is the first problem that I've come across that I simply can't find an answer for.

I want to show a different license file for UK English and US English,

I've tried doing it like this

LicenseLangString license 2057 "license UK.rtf"
LicenseLangString license 1033 "license US.rtf"
LicenseLangString license ${LANG_GERMAN} "license G.rtf"
LicenseLangString license ${LANG_SPANISH} "license Sp.rtf"
LicenseLangString license ${LANG_ITALIAN} "license I.rtf"
LicenseLangString license ${LANG_FRENCH} "license FR.rtf"


but this causes all text in the installer to go blank when the language is set to 2057 (which is English UK) and I also get lots of warnings like this:

LangString "MUI_TEXT_WELCOME_INFO_TITLE" is not set in the language table of language 2057.

I assume this is because LicenseLangString sets the language variable to 2057. What I really want it to do is just show a different license file for that language and still use US English for the rest of the installer.

Anyone have any ideas how I can get round this problem?

Any help would be greatly appreciated.

Thanks :)


You have to load a language file for English UK, if you wish to easily use a different license file for it. If not, you can load it from an external file.


Thanks kichik.