Translations in custom action - VBScript inline - Advanced Installer Community

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!

Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Translations in custom action - VBScript inline

Hi,

I need to use MsgBox in a VBScript inline (Custom action). In this MsgBox, I need the message text and title to be translated depending of the MSI runtime language.

How can I do this ?

Note : I have already an external custom dictionary file including custom translations for dialogs. BTW this works fine.

Is it possible to do something like this : MsgBox "KEYWORDMSG", 0, "KEYWORDTITLE" and put "KEYWORDMSG" and "KEYWORDTITLE" as entries in dictionary file ?

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Translations in custom action - VBScript inline

Hi,

What you need can be done by using a localized property. For example, the custom action can use this code:

Code: Select all

MsgBox Session.Property("MY_PROP")
In your custom dictionary you can localize the value of MY_PROP for each language. Please note that the property should be initialized in the Install Parameters page with a default value.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Translations in custom action - VBScript inline

Thanks Cosmin !

I've just forgotten to change the localization option in the property.

Return to “Common Problems”