Hi Sean,
What you need can be done in multiple ways:
1) Use the
Registry page to create a registry value for each language. Since the values will have the same names, you can use the approach explained in the
Install 32-bit/64-bit registry entries how-to (property-based registry keys). After the registry entries are created, you can use the
Organization page to condition the installation of their components.
In the "
Condition" field of the
Component Properties page you can use the
ProductLanguage property. For example, the condition of the English registry value can look like this:
Note that "1033" is the language identifier of the English language. You can find a list of language identifiers
here.
2) Another approach is to use a
custom action. This custom action can verify the
"ProductLanguage" property and based on the result it can write a registry value.
Here you can find some sample VBScript code for creating a registry value. Note that in VBScript you can get the value of a property by using the "Session" object:
Code: Select all
dim languageID
languageID = Session.Property("ProductLanguage")
After retrieving the language identifier of the installation language, you can compare it with known values and set a variable. When all known values are verified, you can write the variable into the registry.
If you have questions about these approaches, don't hesitate to ask.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging