Set language in custom page
Hi all !
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.
Settings***93;
***91;
>NumFields=3
>***91;Field 1***93;
>Type=DropList
Text=Select language here...
>ListItems=English|French
Left=23
Right=213
Top=112
Bottom=217
State=English
>***91;Field 2***93;
>Type=Label
Text=This installer is available in more than one language.
>Left=23
Right=-1
Top=83
Bottom=96
>***91;Field 3***93;
>Type=Label
Text=Please select below your language:
=
>Left=23
Right=-1
Top=97
Bottom=112
>
thx for your help