MSDE or SQL Server check on destination PC
Hello,
I'm creating package with Wise for Windows Installer and need to check if MSDE or SQL Server exists before I progress with installation.
I tried to use SQL Server Version from System Requirements, but it doesn't treat MSDE as SQL.
What is the best way to check if one of MSDE or SQL exists? May I use system search for any registry key?
Thanks
I'm creating package with Wise for Windows Installer and need to check if MSDE or SQL Server exists before I progress with installation.
I tried to use SQL Server Version from System Requirements, but it doesn't treat MSDE as SQL.
What is the best way to check if one of MSDE or SQL exists? May I use system search for any registry key?
Thanks
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
kkaminsk
19 years ago
I saw an example of a guy using C++ to detect the registry keys needed and throwing an error as a custom action. Maybe you should write a vbscript to find the appropriate registry keys and raise errors if they cannot be found?
I have not used system search for the registry so I'm no good in that department.
I have not used system search for the registry so I'm no good in that department.
Posted by:
tanya
19 years ago
Posted by:
aogilmor
19 years ago
You should determine what file or reg key is specific to MSDE and do a system search for that. Feed that value to a property, then branch your script from that (i.e. if the property value is Null or doesn't return the REG key or file name, throw an error and exit the installation)
SQL Server Version can be put in System Requirements, as you've already noted.
SQL Server Version can be put in System Requirements, as you've already noted.
Posted by:
tanya
19 years ago
Posted by:
Jim101
19 years ago
Hi,
Unsure if this will help but what you could do is within WPS use the Install Editor. Go to the System Search option and create a new serach for a registry key.
I have just searched a test WinXP SP2 PC and found the following keys;
HKLM\Software\Microsoft\Windows\CurrentVersion\ShellCompatibility\Applications\msdev.exe\Version = "6.*"
or
HKLM\System\ControlSet001\Services\Eventlog\Application\MSSQLServer/MSDE\EventMessageFile = Hex(2) XXXXXXX
You could then create a custom action within the MSIScript Editor with an If Statement (NOt INstalled) then execute the installations for either SQL or MSDE.
Hope this helps a little.
PS - I am using WPS 5.5 but I am sure this worked with 5.1.
Unsure if this will help but what you could do is within WPS use the Install Editor. Go to the System Search option and create a new serach for a registry key.
I have just searched a test WinXP SP2 PC and found the following keys;
HKLM\Software\Microsoft\Windows\CurrentVersion\ShellCompatibility\Applications\msdev.exe\Version = "6.*"
or
HKLM\System\ControlSet001\Services\Eventlog\Application\MSSQLServer/MSDE\EventMessageFile = Hex(2) XXXXXXX
You could then create a custom action within the MSIScript Editor with an If Statement (NOt INstalled) then execute the installations for either SQL or MSDE.
Hope this helps a little.
PS - I am using WPS 5.5 but I am sure this worked with 5.1.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.