Running Setup to Install SQL Server 2000 (64-bit)
This topic applies only to SQL Server 2000 (64-bit).
Run the Setup command to install Microsoft® SQL Server™ 2000 (64-bit) or any of its features. Run Setup in either of the following ways:
- Execute Setup.exe from a batch command file or from the command prompt. When using this method, setup switches are specified in the same way they would be specified for any other command prompt utility.
- Execute Setup.exe from within an application setup executable file, using a method similar to the Microsoft Win32® CreateProcess() function. In this case, setup switches are specified in a character string passed in using the lpCommandLine parameter. For information about using CreateProcess() to execute Setup.exe, see the "Desktop Engine Installation Samples" topic in the SQL Server 2000 32-bit Books Online (64-bit).
To perform an unattended installation use the /qn or /qb argument. The /qn argument provides for a silent installation, displaying no user interface dialog boxes. The /qb argument displays only dialog boxes showing progress information, such as the dialog box that prompts users to restart after setting up SQL Server. For an unattended installation of a failover cluster, you must use /qn.
The preferred method for removing an instance of SQL Server 2000 is to use Add or Remove Programs in Control Panel, or to run Setup.exe from the desktop or Windows Explorer. However, you can use the setup command line to uninstall SQL Server for an unattended operation or from another application. To uninstall an instance of SQL Server 2000 using the setup command line, call Setup.exe using the /x switch to specify the same .msi file that was used to install that instance. For example, to uninstall a named instance installed with a custom installation package file named MyCustom.msi, execute:
Setup /x MyCustom.msi
Instead of an .msi file, you can specify the product code from the ProductCode registry key. For the default instance use HKEY_Local_Machine\Software\Microsoft\MSSQLServer\Setup:ProductCode. For a named instance use HKEY_Local_Machine\Software\Microsoft SQL Server\instancename\Setup:ProductCode.