I'm trying to use the '!insertmacro MUI_LANGUAGE "myLMang"' in a specific way.
First i have one install which store the language the user chose.
!define MUI_LANGDLL_REGISTRY_ROOT HKLM
!define MUI_LANGDLL_REGISTRY_KEY "SOFTWARE\${Registry}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "${Langinstall}" Then the second installer get the language in the registry (i.e. 1033 for English). The installer doesn't display language listBox.So I want insert the right language in the script (here " !insertmacro MUI_LANGUAGE "English" "
My problem is that I can't use this macro in a function and I can't use switch case out of a function.
Does anyone got an Idea to help my poor brain...?
Here's my code:
${Switch} $LANGUAGE
${Case} '1033'
!insertmacro MUI_LANGUAGE "English"
${Break}
${Case} '1036'
!insertmacro MUI_LANGUAGE "French"
${Break}
${Default}
${Break}
${EndSwitch}