ozhummer
Posts: 10
Joined: Wed Jan 09, 2019 6:50 am

Can I add a dialog to provide a choice?

I want to be able to include a dialog window that has 2 radio buttons with 2 choices.
How do I display this before the prerequisites and can I install a prerequisite based on the value of the radio buttons???
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Can I add a dialog to provide a choice?

Hello,

Yes, it is possible to achieve what you want. However, have you tried our predefined support for "OptionalFeatsDlg"? For each feature-based or post-install prerequisite, a feature is created in "Organization" page.

The above mentioned dialog will do exactly what you want, it will install your prerequisites based on what user chooses.

In order to add this dialog to your project, simply go to "Dialogs" page --> click on "WelcomeDlg" and then click on the "Add Dialog" button from the toolbar. After doing so, simply select the "OptionalFeatsDlg".

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozhummer
Posts: 10
Joined: Wed Jan 09, 2019 6:50 am

Re: Can I add a dialog to provide a choice?

Thanks - I will give it a try
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Can I add a dialog to provide a choice?

You are always welcome.

Please let me know if that is what you were looking for.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ozhummer
Posts: 10
Joined: Wed Jan 09, 2019 6:50 am

Re: Can I add a dialog to provide a choice?

Thanks - I notice the dialog has check boxes - Can these be made radio Buttons ? And how Do I control if the prerequisite is installed???? thanks
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Can I add a dialog to provide a choice?

Hello,

You are always welcome.
Can these be made radio Buttons ?
If you want to change the checkboxes with radio buttons, then you can create your own dialog which you can configure (e.g. place radio buttons on them and other controls).

In order to add a new dialog to your project, all you have to do is to go to "Dialogs" page --> click on "WelcomeDlg" and press the "New Dialog" button from the toolbar.

After doing so, you can proceed with adding the radio buttons to your dialog. In order to add a radio button to the dialog, a "Radio Button Group" control will be needed. In order to add these controls, simply use the "Controls Toolbox" button from the toolbar.
And how Do I control if the prerequisite is installed?
As I have stated earlier, each feature-based and post-install prerequisite creates his own feature in the "Organization" page. If you go to "Organization" page and click on the feature that is related to your prerequisite, you will notice the "Installation Behavior" section, where you can control the installation behavior of your prerequisite.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”