Launching Custom Actions from Dialog Buttons
InstallShield 2020
To launch a custom action from a button on a dialog, use the button control’s DoAction event. Before you can set up a DoAction event, you need to create a custom action.
When you have created a custom action, you can set up a DoAction event to launch this action.
To launch a custom action from a push button control:
|
1.
|
In the View List under User Interface, click Dialogs. |
|
2.
|
In the Dialogs explorer, expand the dialog node for the dialog that you want to modify, and then click its Behavior subnode. |
|
3.
|
In the center pane, which shows a list of all of the controls on the selected dialog, click the push button control that you want to trigger the custom action. Its settings are displayed in the right pane. |
|
4.
|
In the Events setting, click the New Event button, and then click DoAction. InstallShield adds a new set of rows under the Events setting. |
|
5.
|
To specify a condition for the event: In the DoAction setting, click the ellipsis button (...). The Condition Builder dialog box opens, enabling you to specify the conditions that must be met for the action. |
|
6.
|
In the Action subsetting, specify the name of the action that you want to associate with the control. |
Build and test your installation to ensure that it works as expected.