Archive: how to silently choose install language?


how to silently choose install language?
when silently install a program ,how to choose English as the default install language even if the System language is French,or from what registry key does the installer determine what language it will use?

edit:my copy of winxp is an English version ..but the system locale is set to French.


Re: how to silently choose install language?
; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"

...

Function .onInit
MessageBox MB_OK "A default language is : $LANGUAGE"

;change default language to English
Push ${LANG_ENGLISH}
Pop $LANGUAGE

MessageBox MB_OK "A new default language is : $LANGUAGE"

!insertmacro MUI_LANGDLL_DISPLAY

FunctionEnd


You can also use:

StrCpy $LANGUAGE ${LANG_ENGLISH}
There is no need to pass it through the stack.