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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

ProductLanguage based property

Hello,

So i have a settings.conf to save some settings of App like language and user type... etc..


The problem is my settings look like this:

[MDI]
Language=eng
UserType=intermediate


if i try to do this:

[MDI]
Language=[ProductLanguage] i get something like this after installation Language=1033, which is the language code.


Is there anyway inside the project for me to use the property [ProductLanguage] convert to a string like "eng" using a table of some sorts with all the language codes and corresponding strings.

Or something else i can do to turn that language code into a language string??


Thank You.

Sincerely,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: ProductLanguage based property

Hi Diego,

In order to achieve this, you can use a custom action where you can set a new property with the language name based on the ProductLanguage value. For details, please take a look on the How do I set an installer property using custom actions? article which may be useful to you. Also, I've attached a sample project regarding your scenario.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Attachments
SampleProject.zip
(3.86 KiB) Downloaded 340 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: ProductLanguage based property

Hello Dan,

Thanks Again it seems to be exactly what i need i'll test it with a conf file and using text update.

And get back to you.

Thank You the script is exactly what i needed.


Sincerely,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: ProductLanguage based property

You're always welcome Diego,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Building Installers”