AndrewMolyneux
Posts: 3
Joined: Mon Aug 20, 2012 1:22 pm

Localizing images

Hi,

Our installer includes our product name in banner and dialog background images (it's part of the product logo). We've standardized on identifying our product with its English name in all languages except Japanese, but our Japanese distributor insists that the Japanese version of the product has the name written in Japanese.

In Advanced Installer, is there any way to configure a different set of banner/dialog images when the product is being installed in Japanese vs. other languages? I can't find any obvious way to do it.

Thanks in advance,

Andrew Molyneux
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Localizing images

Hello Andrew and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve this you can proceed like this:
- Go "Themes" -> "Images" tab and add two new image (for japanese language) like this:
  • Images Path: JAPANESE_BANNER_PATH
    Property Name: MY_BANNER

    Images Path: JAPANESE_DIALOG_PATH
    Property Name: MY_DIALOG

- Go to "Custom Actions" page and add two "Set installer property" custom actions with sequence, scheduled before "Wizard Dialogs Stage" -> "Searches" action group, like this:
  • Property: DialogBitmap
    Formatted: [MY_DIALOG]
    Condition: UserLanguageID = 1041

    Property: BannerBitmap
    Formatted: [MY_BANNER]
    Condition: UserLanguageID = 1041

-Build and run your project.

In order to condition your banner and dialog images you can use the UserLanguageID property. Also, you can take a look on "Language Identifier Constants and Strings" article.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AndrewMolyneux
Posts: 3
Joined: Mon Aug 20, 2012 1:22 pm

Re: Localizing images

Daniel,

Thanks for the quick response! I'll try that tomorrow and let you know how it goes.

Andrew
AndrewMolyneux
Posts: 3
Joined: Mon Aug 20, 2012 1:22 pm

Re: Localizing images

Daniel,

That worked perfectly. Thanks!

Andrew

Return to “Building Installers”