Hello,
Please keep in mind that you can use two type of
Custom Actions in Advanced Installer:
-
custom action with sequence - The sequence will be placed in a default location appropriate for the type of custom action you are inserting. You can then move it to a more refined location.
-
custom action without sequence - This is useful if you wish to launch this custom action through an Execute custom action event in Dialogs page. Without any event as trigger, the custom action will never be executed.A custom action without sequence is not added in the sequence list. It will be executed only if an "Execute custom action" event is triggered from installation UI controls.
As I said in my previos post, the related custom actions will be executed as events when the [Next] button will be pressed.
You can go in the “Custom Actions” page and add the
Display error message predefined custom action without sequence and add another event on the same [Next] button.
In order to achieve that you can select the related [Next] button and in the “Init Event” tab add another
“Initialization Event” and from the new appeared windows select
Execute custom action and for the argument you can select the previosly added “ErrorMessage” custom action.
In the condition field you can type:
NOT SqlServerBrowseOutput .
So the “Display error message” custom action will only be executed if there will be no servers found.
If you have other questions, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging