Skip to content
⌘ NSIS Forum Archive

problem with the language

5 posts

superwan#edited

problem with the language

hello...

I've got some problems with the language boxw at the start...

he never remembers the language I'm using, and asks me always what language I want...



the problem is :


!define MUI_LANGDLL_REGISTRY_ROOT "HKLM"
!define MUI_LANGDLL_REGISTRY_KEY "Software\K!TV"
!define MUI_LANGDLL_REGISTRY_VALUENAME "LanguageNumber"
this does not work...
I don't understand why...
THe registry value "Language number" is not written...




(i make a silent install and an execwait uninstaller during my installation...)
superwan#
I'm asking me a question...

how does he know, german is 1031, and french is 1036 ?

I didn't enter those values, that's why he can't write it... :L

but on my other script, it works, but I didn't enter those values too...
superwan#
well i know...

I'm using :

 !insertmacro MUI_RESERVEFILE_LANGDLL
!include "instlang\french.nsh"
and in the french.nsh :

!insertmacro MUI_LANGUAGE "French"
LangString INILanguage ${LANG_FRENCH} "Français"
the same for both scripts...
does not answer why the value "languagenumber" isn't written to my registry... 🙁
superwan#
I corrected the problem with :

WriteRegStr HKLM "Software\K!TV\" "LanguageNumber" "$LANGUAGE"
I don't know why this works without this line in the old script, and not with the new script (where I install with the uninstaller)...
Joost Verburg#
Please check the Modern UI Readme for the location where these settings should be inserted in your script.