We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Writing installation language to XML file

Hi everyone,

I'm currently searching for a way to configure an installed application to start up in the language selected during installation.
For this to work I need to write the installation language's two-letter-code (2LC; e.g. "en" or "de") into an XML file.

I figured out how to create (and possibly update) such a file but only found the ProductLanguage property which will be something like "1033" instead of the desired "en".

Does anybody know how to convert the language ID to the 2LC?
Do I have to introduce a translated string for this?

Any help is greatly appreciated!

Thanks in advance,
Oliver
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Writing installation language to XML file

Hello Oliver and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

You can also have a custom property(e.g. MY_LANGUAGE) defined in the “Install parameters” page that can be set according to the language that the user has chosen.

In the “Custom Actions” page you can add a predefined Set installer property custom action with sequence that can be added after “Wizard Dialogs Stage” >> “Searches” stage for each of your language used.

You will set the related property based on the LangID, something like:
In the property field of the custom action you can edit to something like:
Property field: MY_LANGUAGE
Value field: fr
Condition field: ProductLanguage = 1036

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Re: Writing installation language to XML file

Hello Dan,

thank you for your fast response!

Your approach sounds promising, although I was hoping for something like "just use the property AI_InstallationLanguage".
I'll gladly follow your instructions on introducing a custom property.

Thanks again,
Oliver
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Writing installation language to XML file

Hi Oliver,

You're welcome. If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”