Skip to content
⌘ NSIS Forum Archive

Force LanguageSelection

4 posts

Konrad#

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
Konrad#
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!
Joost Verburg#
The language is only being written when the setup has completed.

I've uploaded the new Modern files 😁