0

Possible Duplicate:
How to detect SQL Server Express in WiX installer

I am planning to install SQL Server in silent mode via installer of my application.
What is the best way to detect that SQL Server Express 2008 is installed on machine?

Some of my assumptions:

  1. Searching an entry in registry. But which KEY to check..? And this entry must be erased on uninstalling Server.
  2. Try to connect to Server and analyse the result.
  3. Custom action that will detect an active SQL Server service..
Community
  • 1
  • 1
Nerielle
  • 984
  • 1
  • 11
  • 29
  • You could also find some additional info here: http://stackoverflow.com/questions/141154/how-can-i-determine-installed-sql-server-instances-and-their-versions – Johann Blais May 30 '11 at 09:00

1 Answers1

0

The blog entry at the following link shows how to use WMI to see if SQL Express is installed. You could use the information in this article to write a helper. It seems to be good for SQL 2005 or later. The article does not recommend checking the registry. SQL Server Express WebLog

IanT8
  • 2,167
  • 2
  • 23
  • 38