Hi Tom,
Unfortunately the installation language cannot be changed after the MSI starts running. However, you can use an EXE bootstrapper to show a language selection dialog before the install process:
- in the
Languages tab of the "Translations" page select the languages you want to include in your project
- select the "Create only a multilingual package" option
- in the
Bootstrapper tab of the "Media" page select the "Display language selection dialog (for multi-language packages)" option
- select the "Include install files in EXE" option to generate a single EXE setup file (this is optional)
When the package is launched through the EXE it will show a language selection dialog with the languages you selected in the project.
If you want to install different files for each language, you can try this approach:
- in the
Organization page create a different feature for each language
- in the
Feature Properties page use the "Conditional install level" link to show the
Edit Conditional Levels dialog
- use the
ProductLanguage property to create conditional install levels for each feature; for example, for the German feature the conditional install levels should look like this:
Code: Select all
ProductLanguage = 1031 1
ProductLanguage <> 1031 0
- the value 1031 is the locale ID for German (Germany), you can find a complete list of ID's
here
- in the
Files and Folders page use the "Feature" combo on the toolbar to select the German feature
- in the folder which should contain the language dependent files create a new regular folder
- rename it to something meaningful for the language of the files, for example "German" (the folder you are creating will be included in the current feature selected on the toolbar, so German folder is for German feature, English folder for English feature etc.)
- add in this subfolder the German files
- double-click the folder or use its "Properties" context menu to show the
Edit Folder dialog
- enable the "Install folder content into the parent folder" option
- repeat the steps for the other languages
In the end you should have a different subfolder for each language, each using a different feature. The conditional install levels will use the installation language to determine which feature will be installed (for example, the German feature should be installed when the installation runs in German).
The files which are common to all languages can be placed directly in the target folder. Also, in the "Organization" page you can add them in a common feature.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging