Archive: Unisntaller Language Detect


Unisntaller Language Detect
Ive write a multilanguage installer

The script use this line to set the selected language

!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"

Everything is ok when i run de installer shows to me to select language and when i run uninstaller, this know my "install" language reading the registry with the entry i write above.

The problem is, if i make 2 installers, i run both, the 1st shows to me lo select language but the 2nd never. it tooks the default operating system language and worst when i run the 1st unisntaller take the selected language and if i run the 2nd unistaller, this shows to me the select language dialog

It is OK?
This is the way that the install/unistall will run?

TIA


It's OK, as long as you give them both the same registry path. If you have two different installers, you'd usually want to give each of them a different registry path to save their settings.


Hi kichik
I think that, but the
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" is automatically used when i write
!insertmacro MUI_UNGETLANGUAGE
in my un.onInit Function

How can i "say" to NSIS to reach different registry entries

TIA


You said you have two installers. That means two scripts. Use a different registry entry in each script.


Sorry But i not understand
If i not wrong the entry "NSIS:Language" is property of NSIS
How can i tell to NSIS my differente entry language??


It's not a property of NSIS, it's a property of your script. Simply change that !define line you pasted in your first post.