Archive: Multi-lang installer: how to change the default language?


Multi-lang installer: how to change the default language?
Hi everyone

I'm making a multi-lang installer (german and english) and I want to make German the default selected language in the first window (the one with a combo box, telling the user to select installer language)

I have found no way to do that, even changing the order of:
!insertmacro MUI_LANGUAGE German
!insertmacro MUI_LANGUAGE English

has been ineffective, because English always shows up as the default language!

Is it somehow related to the Windows version I am running (Win XP Pro English version????)


Yes, it's related to the version you're running. The GUI is in English and therefore the default selection is English as well. You can change that in .onInit. Just copy a different value into $LANGUAGE.


search for LangDLL (LangDLL::LangDialog) if you want to have a language selection dialog before the welcome screen.


that is not needed...

if you use
!insertmacro MUI_LANGUAGE German
!insertmacro MUI_LANGUAGE English

and in .onInit you use
InitPluginsDir
!insertmacro MUI_LANGDLL_DISPLAY
the installer will automatically ask for a installation language


You're right. I use LangDLL directly because I don't want to have a language selection when the installer detects a supported language.

My installer currently supports German and English and I show the language selection dialog only for windows systems which are neither German nor English (e.g. French, Spanish ...).

But maybe even there the macro makes things a bit easier.


One more question: is it possible to dynamically change the text in the installer language selection dialog according to the language currently selected?

I mean, is is possible to have the text in english when english is selected and in german when german language is selected?