Archive: Naming "uninstaller.exe" depending on language?


Naming "uninstaller.exe" depending on language?
Modern UI and Multi-Language License / Uninstaller

MultiLanguage uninstaller name:
--------------------------------------
Is there a simpler way to name the uninstaller, depending on their current language? I tried "stealing" one of the strings from the language file - $(^MUI_UNTEXT_UNINSTALLING_TITLE). That string is supposed to be the word "Uninstalling" (depending on their language), which is kind of close, although I know it's not proper grammar.

Anyway, it does not seem to work:

WriteUninstaller "$INSTDIR\$(^MUI_UNTEXT_UNINSTALLING_TITLE).exe"

I end up with an uninstaller link that points to "$INSTDIR\.exe"

One other quick question: using MUI and multilanguage license files seems to work fine. However, I'd like to only copy the license file for their current language into the install folder (instead of all 10 different license files). Does anyone have a suggestion for this?

Thanks all,

-J


Re: Naming "uninstaller.exe" depending on language?


!include "LogicLib.nsh"
...
LangString name ${LANG_ENGLISH} "eng_name"
LangString name ${LANG_RUSSIAN} "rus_name"
LangString name ${LANG_FRENCH} "fr_name"
...
;copy license file - somewhere in section
${Switch} $LANGUAGE
${Case} ${LANG_ENGLISH}
File "/oname=license.rtf" "eng_lic.rtf"
${Break}
${Case} ${LANG_RUSSIAN}
File "/oname=license.rtf" "rus_lic.rtf"
${Break}
${Case} ${LANG_FRENCH}
File "/oname=license.rtf" "fr_lic.rtf"
${Break}
${EndSwitch}
...
;multilanguage uninstaller name
WriteUninstaller "$INSTDIR\$(name).exe"
...

Thank you
Thanks! I wasn't sure if there was something built in to do this, or if I had to do conditional statements like your example. I appreciate the response!

-Jamyn