Detect if SQL Server 2005 Installed - Advanced Installer Community

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!

brian
Posts: 39
Joined: Tue Nov 29, 2005 5:30 pm
Location: California, USA

Detect if SQL Server 2005 Installed

I'm pretty sure this is the registry key to check and see if SQL Server 2005 is installed, just wanting to verify this with everyone here and see if anyone knows of a better/different key.

HKLM\Software\Microsoft\Microsoft SQL Server\90

If the 90 key exists, SQL Server is installed.

Thanks,
Brian
brian
Posts: 39
Joined: Tue Nov 29, 2005 5:30 pm
Location: California, USA

Actually, let me change this around a bit. I added a registry search named SQLINSTALLED for:
HKLM\Software\Microsoft\Microsoft SQL Server\90\
Looking for the key: InstalledInstances
It gets the raw value.

Then, I set up a launch condition for SQLINSTALLED="", with the description "SQL Server Express is not installed, please install SQL Server before installing ..."

This seems to work OK.
ntodorov
Posts: 7
Joined: Tue Aug 07, 2007 3:41 pm

Just for the record - this approach isn't working.
1) HKLM\Software\Microsoft\Microsoft SQL Server\90\ - Key isn't in 90,
but in HKLM\Software\Microsoft\Microsoft SQL Server\
2) InstalledInstances is mutistring value as result search variable SQLINSTALLED is always empty

In my case I needed to know is there any version of SQL server installed and I do this by searching for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Setup\
SQLPath key.

Good luck to all.
Nik

Return to “Common Problems”