Detecting SQL Express by Instrance Name

Got a problem you cannot solve? Try here.
Post Reply
hsmith
Posts: 12
Joined: Fri Aug 25, 2006 3:36 am
Location: UK
Contact:

Detecting SQL Express by Instrance Name

Post by hsmith »

When I am using the SQL Express pre requisite it checks for the presence of SQL express. However it just generically checks for SQL Express and doesnt check by Instance name.

So if for example another app installs SQL under an instance name of Fred, and my app uses an instance name of Flintstone, then the prerequisite checker thinks SQL is installed (which it is of course) and my app will fail.

How can you circumvent this weakness?

TIA

Howard Smith
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

In the Application Runtimes view, if you highlight SQL Server, and choose Options, you get to configure exactly which instance you want to check for. So you can check for your custom instance as a pre-requisite.

Please note however that you perform the check by the service name, which will be slightly different from your exact instance name. So don't let that throw you off guard.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
hsmith
Posts: 12
Joined: Fri Aug 25, 2006 3:36 am
Location: UK
Contact:

Post by hsmith »

Michael

Thanks for quick answer - that solves that one :D


Cheers

Howard Smith
Post Reply