bhodso
Posts: 19
Joined: Sun Apr 20, 2008 1:11 am

Conditionally Show/Hide Dialog based on Language Selected

Tue Dec 23, 2008 12:39 am

I have some custom dialogs I am using in the Enterprise edition. If my user runs the installer in English, I need to show a certain set of dialogs that details the product features and images for the English version. If the user selects Spanish, I need to show a completely different set of dialogs. It is not as easy as just showing different localized versions of the same dialog because the content and layouts are totally different as well.

Is there a way to conditionally show or hide a custom dialog during the install process based on the user's language selected and if so, how?

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

Re: Conditionally Show/Hide Dialog based on Language Selected

Tue Dec 23, 2008 11:56 am

Hi,

Please note that the User Guide contains some how-to's which may help you:
Conditionally show "StartMenuShortcutsDlg"
Conditionally show the "UpgradeDlg" dialog

Since the installation dialogs will be determined by the language, you can use the "ProductLanguage" property to condition the "NewDialog" control events. Note that the project should contain all the dialogs for all languages. Only the custom "NewDialog" control events should determine which dialogs will be shown for a specific language.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”