I had in my script support for multiple languages. Later on, my company decided that for now we support english only. Because I know for a fact that this will get change to support multi-language again, I left the language-code into the script, and I just commented out the following lines:
Everything seems to work fine, english is by default used in the installer and uninstaller, no language dialog is shown. But there is one problem: if I install silently (my-setup.exe /S) the "NSIS:Language" entry is NOT written in the registry, which means that when I later uninstall the program from Add/Remove programs, I get the choose-language-dialog, which is not desired. (The "NSIS:Language" is written into the registry if the installer is run non-silent)
;!insertmacro MUI_LANGUAGE "French"
...
Function .onInit
;!insertmacro MUI_LANGDLL_DISPLAY
...
FunctionEnd
Questions:
a) Why in a silent install the NSIS:Language is not written into the registry? Is this by design? I mean, in a non-silent install, even if the language-dialog is not shown, the NSIS:Language is written into the registry with the default value.
b) How could I solve my problem without removing my language code from the script?
Thank you,
Viv