PDA

View Full Version : save choosen language to registry ?



Tamas Jutasi
07-18-2006, 09:52 AM
Hi!

I start to use Installshield 12 Premier version, and we have a multilanguage (5) project.

Is there any easy way to use the choosen language to set a registry key ?
I mean the way like [INSTALLDIR] token or so...

jts

RobertDickau
07-18-2006, 10:14 AM
[ProductLanguage], perhaps?

cbragg
07-18-2006, 10:27 AM
You can use the [ProductLanguage] property as the registry value. However, this will return a language ID such as 1033 for English. If you want a string that says English, then you will need a custom action in your MSI that will retrieve the property and translate that to a text string and then placing that into a property which will be used instead as your registry value. If you are the developer of the application you are installing then you could leave the application ID in the registry and code within your application to translate. Maybe you are just happy with the ID.

Tamas Jutasi
07-18-2006, 11:15 AM
Thank you, I did found only SELECTED_LANGUAGE in help what's cause error message at setup.
The ID is perfect, thanks.