Is it possible to translate the description of a shortcut in a multilang installer ?
Example : When installed in Dutch the shortcut to uninstall.exe should be named : 'Verwijderen programma' and when the program was installed in English it should be named 'Uninstall program'.
Thanks in advance for helping me out ! 😉
translate description of shortcut
4 posts
Yes, use a LangString.
For example:
For example:
LangString Shortcut_Name ${LANG_ENGLISH} "a shortcut.lnk"
LangString Shortcut_Name ${LANG_DUTCH} "Verwijderen programma.lnk"
#...
CreateShortcut $(Shortcut_Name) ... But what do you do if you need to create a shorcut in the start menu?
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\${DESC_StartUninst}.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 Do I realy need to do this:LangString DESC_StartUninst ${LANG_ENGLISH} "$SMPROGRAMS\${MUI_PRODUCT}\Uninstall ${MUI_PRODUCT}.lnk"
...
CreateShortCut "${DESC_StartUninst}" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 For now, yes. In b4 you'll be able to combine language strings inside other strings. To make it easier you can create a define of the first part:
!define path "$SMPROGRAMS\${MUI_PRODUCT}\"
!define path "$SMPROGRAMS\${MUI_PRODUCT}\"