jstuardo
Posts: 87
Joined: Mon Nov 09, 2015 10:44 pm

Showing a message box depending on feature selected.

Fri Jul 20, 2018 2:44 pm

Hello,

is it possible to show a message box when a user selects certain feature?

For example, I have the Customize dialog. If the user selects a feature and presses "Next" button, I need to show an alert telling the user to do some action. For example that message could read: "Since you selected feature A, don't forget to do this action.". It could contain only one button named "OK".

Is it possible? If not directly, maybe I can create that dialog using a class library in other language, such as C++ or C# and then include it as a part of the installation UI.

Regards
Jaime

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Showing a message box depending on feature selected.

Mon Jul 23, 2018 9:36 am

Hello Jaime,

In order to achieve what you want, you can use our predefined "Message Box" custom action which will be triggered upon pressing the "Next" button from your dialog.

Your scenario can be implemented following these steps:
1) Go to "Custom Actions" page from the "Custom Behavior" group and add the "Display message box" custom action using the "Add custom action without sequence" button.

2) Configure the custom action as you wish.

3) Now go to "Dialogs" page from the "User Interface" group. Click on the dialog in which you want your custom action to execute, click on the button which will trigger the custom action and under "Published Events" tab, click the "New..." button --> "Execute Custom Action". In the "Argument" field, you should have the name of the earlier created custom action and in the "Condition" you should have the condition to trigger this custom action.

Now in the condition field, click on "..." button. In the "Edit Condition" dialog press on the "Control Events" button which is located to the right side of the "Expression" field. After pressing that button, a "New Condition Wizard" will appear, letting you configure the condition. Press the "Next" button --> select the "Feature" option --> click "Next" button --> select your feature --> select "Will perform action" --> select the "Feature will be installed local. The feature is not reinstalled." condition --> click "Next" button --> select "Finish" option --> click "Next" button --> click "Finish" button. This way, the "MessageBox" custom action will be triggered only if the feature is selected in the "OptionalFeatsDlg" dialog.


Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”