PDA

View Full Version : How to find if SQL Express is already installed or not using Install Script.



PavanKumar1234
08-27-2013, 10:16 AM
Hi,

I know how to install SQL Express 2012 using Custom Actions.

However, I want to do that only if SQL Express 2012 is not already installed.

How to know if SQL Express is already installed? Also, if installed, how to know which version is installed?

Thanks in advance.

Shekar
08-28-2013, 07:25 AM
You can use RegDB keys in installscript to find if SQL Express is installed on the target machine. The RegDBQueryKey function allows users to query a key for its subkeys and value names. You can search for regdb keys in help and you would find more information on this.


Hi,

I know how to install SQL Express 2012 using Custom Actions.

However, I want to do that only if SQL Express 2012 is not already installed.

How to know if SQL Express is already installed? Also, if installed, how to know which version is installed?

Thanks in advance.