Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 19th March 2020, 14:15   #1
bovirus
Junior Member
 
Join Date: Jul 2019
Posts: 12
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 is offline   Reply With Quote
Old 19th March 2020, 14:26   #2
bovirus
Junior Member
 
Join Date: Jul 2019
Posts: 12
NSIS script attached
Attached Files
File Type: zip nsi.zip (5.2 KB, 59 views)
bovirus is offline   Reply With Quote
Old 19th March 2020, 18:35   #3
bovirus
Junior Member
 
Join Date: Jul 2019
Posts: 12
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.
Attached Files
File Type: nsi setup_32_64_mod_R4_UTF8.nsi (18.1 KB, 68 views)
bovirus is offline   Reply With Quote
Old 19th March 2020, 18:58   #4
bovirus
Junior Member
 
Join Date: Jul 2019
Posts: 12
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
bovirus is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump