Batting 1000
I've tried everything I can think of, from welcome page custom leave functions, to Popping the language from the .onInit
I am using the MUI not MUI2, and I have a custom license file for each language supported.
So far I've had basically 3 results. An empty license screen, the same language license no matter what language you select, and the license's file name in the license box.
LangString language_file ${LANG_ENGLISH} ioInstallType.txt
LangString language_file ${LANG_FRENCH} ioInstallType.txt
LicenseData $(language_file)
Page license
!insertmacro MUI_PAGE_LICENSE $(language_file)
Shows the file name where the license belongs, I've tried quotes, no quotes, LoadLanguageFile, LangString, etc.
; License data - Not exactly translated, but it shows whats needed
LicenseLangString myLicenseData ${LANG_ENGLISH} "..\required_files\licenses\english.txt"
LicenseLangString myLicenseData ${LANG_FRENCH} "..\required_files\licenses\french.txt"
LicenseLangString myLicenseData ${LANG_GERMAN} "..\required_files\licenses\german.txt"
LicenseLangString myLicenseData ${LANG_ITALIAN} "..\required_files\licenses\itialian.txt"
LicenseLangString myLicenseData ${LANG_SPANISH} "..\required_files\licenses\spanish.txt"
LicenseData $(myLicenseData)
!insertmacro MUI_PAGE_LICENSE $(myLicenseData)
Shows always shows the Spanish license, no matter what I select.
!define MUI_LICENSEPAGE_CHECKBOX
!if $LANGUAGE == 1033
LicenseLangString myLicenseData ${LANG_ENGLISH} "required_files\licenses\english.txt"
MessageBox MB_OK "Setting English"
LicenseData $(myLicenseData)
!endif
!if $LANGUAGE == 1036
LicenseLangString myLicenseData ${LANG_FRENCH} "required_files\licenses\french.txt"
MessageBox MB_OK "Setting French"
LicenseData $(myLicenseData)
!else
LicenseLangString myLicenseData ${LANG_ENGLISH} "required_files\licenses\english.txt"
LicenseData $(myLicenseData)
!endif
!insertmacro MUI_PAGE_LICENSE $(language_file)
Blank screen.
Please help,.