Installing Components Based on Language

InstallShield 2015

Assuming that its feature is selected for installation, a language-dependent component that is present in the release is installed onto the target system. The component’s language setting determines which components are built into the release, not necessarily which components are installed.

Specifying Which Language-Dependent Components Are Installed at Run Time for 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.

Specifying Which Language-Dependent Components Are Installed at Run Time for 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.

For more information, see FeatureFilterLanguage.

See Also