Microsoft KB Archive/823519

= PRB: Windows Installer starts in Repair mode when you try to remove an instance of SQL Server 2000 on a computer that has an instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) =

Article ID: 823519

Article Last Modified on 11/2/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Desktop Engine (Windows)
 * Microsoft SQL Server 2000 Desktop Engine (Windows)
 * Microsoft SQL Server 2000 Enterprise Edition
 * Microsoft SQL Server 2000 Personal Edition
 * Microsoft SQL Server 2000 Standard Edition

-



Bug #: 469759 (SQL Server 8.0)



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you try to remove the last existing instance of Microsoft SQL Server 2000 from a computer that is running one or more instances of SQL Server Desktop Engine (also known as MSDE 2000) or SQL Server Desktop Engine (Windows), Microsoft Windows Installer starts. When the SQL Server removal process is in progress, Windows Installer repairs the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows). You may receive the following error message:

Setup has detected that unInstallShield is in use. Please close unInstallShield and restart setup.

Error 432.

After the removal process is completed, the Add or Remove Programs tool displays the SQL Server Desktop Engine instance name or the Microsoft SQL Server Desktop Engine (Windows) instance name as Microsoft SQL Server Desktop Engine . The instance name is repeated in the Add or Remove Programs tool.

Additionally, you may receive one or more error messages that are similar to the following in the event log:

Detection of product '{B7CF8A67-FEE5-4A41-9767-BAE0D90A732B}', feature 'SqlRun', component '{A8B1BC07-DE70-4C41-B951-3C6C11E5F99C}' failed. The resource 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Tools\Service Manager\Services' does not exist.

For more information, see Help and Support Center at http://support.microsoft.com

Note This problem also occurs in instances of SQL Server 2000 that were upgraded from SQL Server Desktop Engine or from SQL Server Desktop Engine (Windows). This problem also occurs with the following SQL Server 2000 service packs:
 * SQL Server 2000 Service Pack 1 (SP1)
 * SQL Server 2000 SP2
 * SQL Server 2000 SP3
 * SQL Server 2000 SP3a



CAUSE
When you remove the last existing instance of SQL Server 2000 on a computer, the removal process removes registry entries that are shared by instances of SQL Server Desktop Engine and instances of SQL Server Desktop Engine (Windows). Windows Installer is started in Repair mode for the most recently installed instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows).



WORKAROUND
To work around this problem, follow these steps before you remove the last existing instance of SQL Server 2000 from the computer that is running one or more instances of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows).

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.  Click Start, and then click Run. In the Run dialog box, type regedit in the Open box. Click OK. In Registry Editor, check the value of the following registry key:

 If the value of the registry key in step 4 is set to 1, change the value to 2.

Note This step prevents the following registry tree from being removed:

 Back up the following registry key by using the Export option:

</li> In Control Panel, double-click Add or Remove Programs, and then remove the instance of SQL Server.</li> In Registry Editor, use the Import option to restore the registry key that you backed up in step 6.</li> Delete the following registry trees: <ul> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\MSSQLLicenseInfo</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Registration</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Tools\SQLEW</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Tools\HELP</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Tools\Tracking</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Replication\MergeReplicationProvider\MSJet</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\SuperSocketNetLib\NP</li></ul>

Note The instances of SQL Server Desktop Engine and SQL Server Desktop Engine (Windows) do not require these registry trees.</li> Delete the following registry keys: <ul> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\80\Tools\ClientSetup\CurrentVersion\Language</li> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\SuperSocketNetLib\LastConnect\ \ </li></ul>

Note The instances of SQL Server Desktop Engine and SQL Server Desktop Engine (Windows) do not require these registry keys.</li></ol>

If you remove an instance of SQL Server without using the previous workaround and the problems that are described in the &quot;Symptoms&quot; section of this article occur, follow these steps:
 * 1) Detach the user databases from the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows).
 * 2) Remove the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows)

Note If the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) was installed by an independent software vendor (ISV) product or by a Microsoft Windows Server 2003 operating system component, the name of the ISV product or the Windows Server 2003 operating system component can be identified by the named instance name. For example, the instance of SQL Server Desktop Engine (Windows) that was installed by the Universal Description, Discovery, and Integration (UDDI) Services component in Windows Server 2003 is named Microsoft SQL Server Desktop Engine (UDDI).

If the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) was installed by an ISV product or by a Windows Server 2003 operating system component, see the documentation for the ISV product or for the Windows Server 2003 operating system component to determine the correct steps to remove SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) components. Additionally, you may have to contact the software vendor for more information.
 * 1) Install a new instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows).

Note If the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) was previously installed by an ISV product or by a Windows Server 2003 operating system component, see the documentation for the ISV product or for the Windows Server 2003 operating system component to determine the correct steps to install SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) components. Additionally, you may have to contact the software vendor for more information.
 * 1) Attach the user databases that you detached in step 1 to the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows).

<div class="moreinformation_section">

MORE INFORMATION
The removal process for SQL Server 2000 does not recognize the instances of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) when it checks for other instances of SQL Server on the computer. Therefore, when you remove the last existing instance of SQL Server from a computer, the removal process prematurely removes the following registry key:

This registry key is shared by other instances of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) on the computer. When the removal process removes this registry key, Windows Installer starts in Repair mode to repair the most recently installed instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows).

The repair process runs in a standard Windows Installer dialog box that is similar to the installation of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows). After this process is complete, the repair process incorrectly modifies the instance name of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) in the Add or Remove Programs tool. The repair process leaves the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) in an unknown state, although it may seem usable. In this situation, remove and then reinstall the instance of SQL Server Desktop Engine or SQL Server Desktop Engine (Windows) by using the workaround in the &quot;Workaround&quot; section of this article.

<div class="references_section">