Skip to content
⌘ NSIS Forum Archive

The difference between "Name", "NameDA" in MultiLanguages of the Installer?.

2 posts

meoit#edited

The difference between "Name", "NameDA" in MultiLanguages of the Installer?.

I'm writing a script and using the interface MUI2.

!define MUI_LANGDLL_REGISTRY_ROOT HKCU
!define MUI_LANGDLL_REGISTRY_KEY 'MyKeyKey'
!define MUI_LANGDLL_REGISTRY_VALUENAME 'Ins language'
Name $(MyApp_Name) ;$(^NameDA)
Caption 'Fooooooooooo blah'
UninstallCaption 'Faaaaaaaaaoa blah'

LangString MyApp_Name ${LANG_ENGLISH} 'Bar blah'
LangString MyApp_Name ${LANG_RUSSIAN} 'Car blah'

I will use the variable in the variables that will have the overall and accurate ?.

Function .onInit
StrCpy $LANGUAGE ${LANG_RUSSIAN}
!insertmacro MUI_LANGDLL_DISPLAY
MessageBox MB_OK|MB_USERICON 'You are using $(MyApp_Name)'
FunctionEnd

OR:

Function .onInit
StrCpy $LANGUAGE ${LANG_RUSSIAN}
!insertmacro MUI_LANGDLL_DISPLAY
MessageBox MB_OK|MB_USERICON 'You are using $(^NameDA)'
FunctionEnd

OR:

Function .onInit
StrCpy $LANGUAGE ${LANG_RUSSIAN}
!insertmacro MUI_LANGDLL_DISPLAY
MessageBox MB_OK|MB_USERICON 'You are using $(^Name)'
FunctionEnd

Thanks all.
.