Archive: LicenseData and Multi Languages


LicenseData and Multi Languages
My Modern UI installer uses English and German translations, but has problems displaying the License properly. If I do not specify a language for LicenseData:

LicenseData "./COPYING"

Then when running the installer in english the license will be missing and the "I agree" button will be blank (in german this will work as expected). If I set the license lang to english:

LicenseData /LANG=${LANG_ENGLISH} "./COPYING"

Then the same above problem will be true when running the installer in german.

I am using cvs NSIS 2.0b4 as of yesterday.


One solution is to use the same license file for both languages:

LicenseData /LANG=${LANG_ENGLISH} "./COPYING"
LicenseData /LANG=${LANG_GERMAN} "./COPYING"

This will let the License page work properly no matter which language is selected. Ideally you would use an English license and a German license but the installer will work even if every language uses the same license file.