Elmore
Posts: 6
Joined: Sun Aug 16, 2020 10:59 am

Depending on the selected language, the required program is installed

Hello.

I have two programs named "program_lang_1" and "program_lang_2". They have the same filenames in the composition.
The installer has a choice of two languages for the installation process (multilingual), for example "lang_EN" and "lang_DE".

How can I make it so that if the user selects "lang_EN" then installs "program_lang_1", and choosing "lang_DE" installs "program_lang_2" ?
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Depending on the selected language, the required program is installed

Hello and welcome to our forums,

Based on your scenario, I am assuming that you are using the "Translations" page --> "User interface language" --> "Display language selection dialog" option.

In order to conditonally install a file based on the selected language, please proceed as it follows:

- go to "Files and Folders" page

- select one of your .EXE

- right click on it --> "Go to Component" (or press F8)

- in the "Condition" field, use a condition as it follows:

i.e. if you want to install the file only if the choosen language is English:

Code: Select all

AI_BOOTSTRAPPERLANG = "1033"
where:

- AI_BOOSTRAPPERLANG is the property that stores the value of the combobox (the one that lets the user select the language)

- 1033 is the code for the English language

For more information about what code each language has, please have a look over our "ProductLanguage Property" article.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Elmore
Posts: 6
Joined: Sun Aug 16, 2020 10:59 am

Re: Depending on the selected language, the required program is installed

Thanks for the help!
It worked.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Depending on the selected language, the required program is installed

You are always welcome!

I am glad everything works as expected.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”