Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Custome dialog based on condition.

Hello,

The installer I am creating needs to show a custom made message dialog based on condition. The installer will search for a registry entry (this part is OK) and the value being true the custom dialog have to be displayed. Otherwise not. How can I do that?

:)
K
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custome dialog based on condition.

Hello,

In order to condition a dialog's appearance use the “Show only if...” tree context menu item. So, during installation, the dialog will be displayed only if the specified condition is met. You can also take a look on the Display a dialog based on a checkbox state tutorial which may help you.

Please let us know if that helped, otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custome dialog based on condition.

Hello,

Thanks for your support. What if the custom dialog can only go to the Next dialog if the registry value is true? I mean a "Try Again" button. Only the dialog can go to the next dialog is when the registry value is true.

:)
K
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custome dialog based on condition.

Hi,

In order to achieve that you can go in the "Dialogs" page and select the [Next] button on the previous dialog from the "Install Sequence" where your custom dialog is added.
In the Published Events of the [Next > ] button select the Display a specific dialog published event and add in the "Condition:" field the public property of that is associated with your search(e.g. REGISTRY_KEY_EXISTS). So, the next dialog will be only displayed if the value of the search is true.

You can also add a predefined Display message box custom action without sequence and on the same [Next > ] button add a new Published Events.
From the new control event window you can select Execute custom action. Edit the events options like:
Argument: MessageBox
Condition: field: NOT REGISTRY_KEY_EXISTS
So, the message box will appear only if the search is not true.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custome dialog based on condition.

Thanks

:D
K
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custome dialog based on condition.

You're welcome.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”