NSIS: How to detect installed SQL instances?
I want to install SQL Express 2008 on user's machine if it's already not installed.
Is there any way to detect whether "SQL Express 2008" is already installed on user's machine or not?
Archive: NSIS: How to detect installed SQL instances?
NSIS: How to detect installed SQL instances?
I want to install SQL Express 2008 on user's machine if it's already not installed.
Is there any way to detect whether "SQL Express 2008" is already installed on user's machine or not?
You'll probably need to check for a registry key or something of the sort. But you should ask the SQL Express 2008 developers...
The way is to read the Add-Remove Programs entry from the registry and the key is the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Enumerate all the subkeys of it and match the DisplayName value of each key. If matched your preferred one its installed.