Installation API for Desktop Engine
Before installing an instance of the Microsoft® SQL Server™ 2000 Desktop Engine (MSDE 2000), your application setup process should first validate the proposed installation using the following Desktop Engine Installation API functions:
- NumInstalledInstances
Returns the number of instances of SQL Server installed on the computer. There cannot be more than 16 instances installed.
- IsInstanceNameValid
Checks whether the name for the new instance of SQL Server is already being used.
To use these functions in a setup program you are developing, you must:
- Copy the file Validateinstance.h from C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\Desktop to a folder in your compiler include path. Validateinstance.h contains the function prototypes for the Desktop Engine Setup API functions.
- Copy the files Desktopenginedeploy.lib and Sqdedev.lib from C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\Desktop to a folder in your compiler library path.
If the application setup program requires logic to interpret the Desktop Engine return codes, you should also copy the file Sqlserrors.h from C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Samples\Desktop to a folder in your compiler include path.
