Detecting SQL Express by Instrance Name

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

Detecting SQL Express by Instrance Name

Postby hsmith » Tue Aug 29, 2006 6:51 am

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:

Postby MichaelNesmith » Tue Aug 29, 2006 7:07 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

hsmith
Posts: 12
Joined: Fri Aug 25, 2006 3:36 am
Location: UK
Contact:

Postby hsmith » Tue Aug 29, 2006 7:10 am

Michael

Thanks for quick answer - that solves that one :D


Cheers

Howard Smith


Return to “Technical Support”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 163 guests