Skip to content
⌘ NSIS Forum Archive

Force show language selector and use different text license file

4 posts

bovirus#

Force show language selector and use different text license file

@Anders

Hello.

I revised an original script that was originally in English.
I moved all hard-coded strings to text variable space.
I add another language (Italian).

My scope will be

- Show always the language selector when I run .exe (Now it start always with langyuage detect by OS - in my case Italian)
- Show a different license file - one different text language file - now is only English

I made many tries but I didn't get OK.

Could you help please tell me what I have to add and where?

Thanks.
bovirus#
Seems that I solved the problem of showing always language selector adding

!insertmacro MUI_LANGDLL_DISPLAY

in .onInit routine


I'm looking for a solution about select a different language file text file selecting different language for the installation.

Please che .NSI file attached.
bovirus#
Soved.

I used the sample like

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!define MUI_LICENSEPAGE_CHECKBOX

LicenseLangString myLicenseData ${LANG_ENGLISH} "license.txt"
LicenseLangString myLicenseData ${LANG_GERMAN) "license_de.txt"
LicenseLangString myLicenseData ${LANG_JAPANESE) "license_jp.txt"
LicenseData $(myLicenseData)
!insertmacro MUI_PAGE_LICENSE $(myLicenseData)


Please check strings in bold italic