Language Based NSIS License File

Not quite sure how to do this ... I use NSIS to build the installer for some applications, and the installer supports English and Japanese. How can I tell NSIS to use one license file (license.txt) if the user selected English, and another file (license.ja-JP.txt) if they chose Japanese?

+4
source share
2 answers

Try this topic: Multilingual EULA using LicenseLangString is its old but up-to-date.

+3
source

To summarize, try something like this. Ordering 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)" 
0
source

Source: https://habr.com/ru/post/1286240/


All Articles