jwebber
Posts: 8
Joined: Sun Jul 23, 2017 8:33 pm

SQL Server Browser Check selected Version

In the installer I have the SQL Server instance browser so they can select and instance/DB and enter credentials. Can I also check at that point to make sure it is SQL 2016 or higher?

Thanks,
Jason
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: SQL Server Browser Check selected Version

Hello Jason,

Unfortunately, we do not have predefined support for such a task. However, this may be achievable through a custom action.

For instance, you can have a script which verifies that and schedule that custom action to execute when the "Next" button is pushed.

If it is mandatory that the user have SQL Server 2016 for your setup, it may be an easier way to achieve this. For instance. you can go to "Launch Conditions" page --> "Software" tab and add a launch condition for SQL Server 2016:
SQLServerLC.png
SQLServerLC.png (111.74 KiB) Viewed 4310 times
Upon installation, if SQL Server is not installed on the target machine, the setup will fail, spawning the following message box:

MsgBox.png
MsgBox.png (52.4 KiB) Viewed 4310 times
However, please keep in mind that the launch conditions are evaluated right when the setup starts, meaning that the user won't make it to the SQL Dialog.

Hope this helps.

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

Return to “Building Installers”