We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

raddad555
Posts: 23
Joined: Sat Feb 09, 2013 3:40 pm

Where is the BrowseSQLserver in the Install Sequence List?

Title says it all, just a quick questiion
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Where is the BrowseSQLserver in the Install Sequence Lis

Hello,

After you added the “SQLConnectionDlg” predefined dialog, you can go in the
SQL Scripts page and use the Wizard >> “Browse SQL Servers” option and let you guided by the wizard.

After you finish this, you can go in the “Custom Actions” page and see in the “Existing Custom Actions” tab that have been added “BrowseSqlServers” and “SendCollectedData” custom actions without sequence.
If you go in the “Dialogs” page and select the [Next] button from the “SQLConnectionDlg” you will see in the “Init Events” tab the existing events that will be executed when the [Next ] button will be pressed.

You can also take a look on our Browse for SQL Servers How-to's article which may be useful.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
raddad555
Posts: 23
Joined: Sat Feb 09, 2013 3:40 pm

Re: Where is the BrowseSQLserver in the Install Sequence Lis

Yes Dan I see all of those areas , what I wanted to see would be down in the Install Sequence list , I do see the browsesqlserver in the existing list at the top but wanted to see where it is listed in the install sequence list so that I can popup a error message if there were none available and exit the install.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Where is the BrowseSQLserver in the Install Sequence Lis

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
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”