Archive: language select doesn't work


language select doesn't work
for the language display i have used

; Language Selection Dialog Settings
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"


; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "SimpChinese"
!insertmacro MUI_LANGUAGE "Spanish"


and in the .onInit function i have
   ;check for multi instance
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running."
Abort

!insertmacro MUI_LANGDLL_DISPLAY

InitPluginsDir
;GetTempFileName $INI $PLUGINSDIR
;MessageBox MB_ICONEXCLAMATION|MB_OK $INI
File /oname=$PLUGINSDIR\select_skin.ini "select_skin.ini"
File /oname=$PLUGINSDIR\welcome_screen.ini "welcome_screen.ini"
File /oname=$PLUGINSDIR\nopreview.bmp "nopreview.bmp"


the copile operation terminates with no error or warning
and still the language display doesn't want to appear

am i missing something?

the lang selection dialog, did not appear even on first execution?
the installer 'knows' after the first execution what language you have selected and does not ask again.
also is good to add this code:
!insertmacro MUI_RESERVEFILE_LANGDLL after language macros :-)


yes i have added that also :)

i have started the instller but forgot to uninstall the first version
so yes the language was already selected and entered in the registry

sorry it was my mistake, the admins can delete this post because i can't :)


Hello, I have a couple of languages in my installer. Inserted them to MUI with !insertmacro MUI_LANGUAGE in this order:
English, German, French, Dutch, Spanish, Italian, Japanese, SimpChinese, Portuguese, Russian, Czech (Czech is my native language and also language of my Win XP).

I don't use registry for storing the language. When I launch my installer, I don't see all that languages in selection dialog. Neither all languages are shown in MultiLanguages MUI example. I am running 2.37.

Why this happens?


only languages supported by your codepage are displayed

define MUI_LANGDLL_ALLLANGUAGES to show all


Thank you, I did bad search because now I see this topic being discussed before. Sorry for duplicity.