Not quite sure how to accomplish this... I'm using NSIS to build an installer for some apps, and the installer supports English and Japanese. How would I tell NSIS to use one license file (license.txt) if the user selected English, and a different file (license.ja-JP.txt) if they selected Japanese?
Asked
Active
Viewed 3,504 times
2 Answers
3
Try this thread: Multilingual EULA using LicenseLangString its old but still relevant.

Shay Erlichmen
- 31,691
- 7
- 68
- 87
-
Thanks! the thread contained the solution. Should have looked harder myself, I guess. – Dmitry Brant Jun 15 '09 at 19:55
-
In case that thread goes away, the solution (for me at least) was to use `LicenseLangString` rather than `LangString` to define the appropriate filename. – ladenedge Dec 17 '12 at 06:37
-
Well, this page contains an error, to get it as easy as possible, look here: http://stackoverflow.com/a/9609268/1576300 – Schlangi Nov 12 '13 at 16:02
0
To summarize it, try something like this. Order is very important.
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Portuguese"
LicenseLangString MUILicense ${LANG_ENGLISH} "C:\EULA\EULA_EN.txt"
LicenseLangString MUILicense ${LANG_FRENCH} "C:\EULA\EULA_FR.txt"
LicenseLangString MUILicense ${LANG_SPANISH} "C:\EULA\EULA_ES.txt"
LicenseLangString MUILicense ${LANG_ITALIAN} "C:\EULA\EULA_IT.txt"
LicenseLangString MUILicense ${LANG_PORTUGUESE} "C:\EULA\EULA_PT.txt"
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "$(MUILicense)"

Veener
- 4,771
- 2
- 29
- 37