superwan
25th January 2005 15:10 UTC
"solved" : languagenumber value not written
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
25th January 2005 15:19 UTC
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
25th January 2005 15:23 UTC
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
25th January 2005 15:41 UTC
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
26th January 2005 09:40 UTC
Please check the Modern UI Readme for the location where these settings should be inserted in your script.