Archive: Force LanguageSelection


Force LanguageSelection
  In an NSIS MUI Installer I remember the installer language with

;Remember the Language

>!define MUI_LANGDLL_REGISTRY_ROOT "HKLM"
>!define MUI_LANGDLL_REGISTRY_KEY "Software\${MUI_PRODUCT}"
>!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
in .onInit I call:

insertmacro MUI_LANGDLL_DISPLAY 

>
The language selection dialog only shows up, if no language is stored in MUI_LANGDLL_REGISTRY_VALUENAME.
I need the value for the uninstaller, I call during the setup (if an old version is detected), but I want the language selection dialog to show up, no matter what language setting is stored in the registry. How is this possible?

Thanks, Konrad

I've added the MUI_LANGDLL_ALWAYSSHOW option :) Will be uploaded later today.


Thanks, but when is the registry key overwritten with the new value? I need the language code of the previous installer, because I uninstall old versions during the setup and get the language via !insertmacro MUI_UNGETLANGUAGE in the uninstaller. It would be great if the value $LANGUAGE is written to the registry only at setup exit!


The language is only being written when the setup has completed.

I've uploaded the new Modern files :D