I writte us for a little problem. I want to define the language in custom page. But I fails ... 🙁
this is my script :
.......
Page Custom LangSelect SetLangue
Function .onInit
#Verify if installer already run
Call AlreadyRun
FunctionEnd
Function LangSelect
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "LangDlg.ini"
!insertmacro MUI_HEADER_TEXT "Select your install language" "atatata"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "LangDlg.ini"
FunctionEnd
Function SetLangue
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "LangDlg.ini" "Field 1" "State"
StrCmp $R0 "French" done
StrCpy $LANGUAGE "1033"
done: StrCpy $LANGUAGE "1036"
FunctionEnd
..... LangDlg.ini; Ini file generated by the HM NIS Edit IO designer.
[Settings]
NumFields=3
[Field 1]
Type=DropList
Text=Select language here...
ListItems=English|French
Left=23
Right=213
Top=112
Bottom=217
State=English
[Field 2]
Type=Label
Text=This installer is available in more than one language.
Left=23
Right=-1
Top=83
Bottom=96
[Field 3]
Type=Label
Text=Please select below your language:
=
Left=23
Right=-1
Top=97
Bottom=112 thx for your help