Box to chose from - Advanced Installer Community
Karl77
Posts: 1
Joined: Thu Jan 12, 2023 11:59 pm

Box to chose from

Hello, I am new here, please help me with:

Create a list of values that the user select during installation and put his selection in the ini file.

For example:
Choose language
Name: English Value: UK
Name: Spanish Value: ES

So the user sees English Spanish in the list, but in the ini config the Value is UK or ES
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Box to chose from

Hello Karl and welcome to our forums,

In order to display a language selection dialog, you can proceed as it follows:

- go to "Translations" page

- add another language to your package

- "Options" --> "Create only a multilingual package"

- "User Interface Language" --> "Display language selection dialog"
Screenshot_54.png
Screenshot_54.png (46.94 KiB) Viewed 3818 times

Regarding the .INI file, I believe the best way would be to do this programatically, through a Custom Action.

From the above dialog, the ProductLanguage property will be set. Based on this, you can create a script that updates the .INI file based on that property.

Hope this helps!

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

Return to “Common Problems”