Archive: MultiLanguage->Deinstallation


MultiLanguage->Deinstallation
Is there a possibility of using the language refined in the setup for the deinstallation? At present, the standard language is always used.
!insertmacro MUI_UNGETLANGUAGE doesn't work properly together with the "language choice" (ModernUI) in the setup.

Greetings
Kronos


Forum Is a simliar problem... but is there another solve than reg?


That other topic is very old (one of the first test versions of the Modern UI).

The Modern UI can automatically save the language. Get the latest development version and check the MultiLanguage.nsi example. You have to define a registry key.


Yes I know:

!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "Software\${MUI_PRODUCT}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"

But the Problem is, when I insert this, the User cannot choose the language (the os-language is choosen). Is there any posibility to make booth?


The MultiLanguage.nsi example uses the language selection dialog:

Function .onInit

!insertmacro MUI_LANGDLL_DISPLAY

FunctionEnd

If the user has already chosen a language during a previous installation, that language will be used. If you want that the language selection dialog will always be shown (with the previous language as default), define MUI_LANGDLL_ALWAYSSHOW (for this feature, you need the latest development version).

Thx! But i´ve got the newest cvs/dev version, but the error:
"!insertmacro: macro named "MUI_LANGDLL_ALWAYSSHOW" not found!"
:(

Greetings
Kronos


So you always want a language selection dialog, even if the user has already chosen a language during a previous installation?

Add

!define MUI_LANGDLL_ALWAYSSHOW
before the first MUI_LANGUAGE macro, it's a define, not a macro!

Thank you very much... :) It works :D

Greetings
Kronos