Summary
How to specify which language-based components are installed at runtime
Synopsis
A language-dependent component can be configured to install only on certain languages. The method to configure this behavior will depend on the project type used.
Discussion
Basic MSI and InstallScript MSI Projects
To specify whether a component is installed based on the target system's language, use the Windows Installer property SystemLanguageID in the component's Condition setting.
For example, the following condition allows the component 'which may or may not be marked as French in InstallShield' to be installed only onto French (France) systems:
SystemLanguageID = 1036
Other properties that can be used to determine language characteristics at run time are UserLanguageID, which is the numeric identifier of the end user's default language, and ProductLanguage, which is the identifier of the language in which the installation is running.
Refer to the following article for The Language IDs for Various Languages.
InstallScript Projects
During run time of InstallScript installations, you can control the languages that your installation supports by calling the FeatureFilterLanguage function.
In the OnFilterComponents event handler, the framework typically calls this function with the languages that match the target system so that only the appropriate components are installed. By calling FeatureFilterLanguage, you can override this default behavior to install or prevent the installation of components based on any language criteria that you specify.
The FeatureFilterLanguage function filters (excludes) files from file transfer based on language. By default, all languages included in the media build are unfiltered (included). You must call FeatureFilterLanguage for each language you wish to filter or unfilter.
To filter language-specific components during the installation:
- Filter (exclude) all languages by calling
FeatureFilterLanguagewithISLANG_ALLin the parameternLangIDand bFiltered set to TRUE. - For each language that you want to install, call FeatureFilterLanguage with the appropriate language constant in nLangID and with the parameter bFiltered parameter set to FALSE. Each call unfilters (includes) components for the language specified in nLangID.
NOTE: You cannot specify multiple language constants in the nLangID parameter by using the OR operator ( | ). Specifying multiple language constants causes the function to perform incorrectly.
Refer to the Additional Information section below for more details on FeatureFilterLanguage.
Additional Information
Related Articles
Create a Component Condition Based on a Feature Being Installed or Not 7Number of Views Create an Install Condition Based on Registry Entry Using Installshield 8Number of Views Setting INSTALLDIR Based on a System Search and Install a Product to an Existing Destination 19Number of Views Modifying Text In Installshield's 'Preparing To Install...' Dialog 11Number of Views How to Set an InstallAnywhere Variable Based on the Install Mode Type 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago