|
1 | 1 | --- |
2 | 2 | title: Remove a partial installation of SQL Server |
3 | 3 | description: This article describes the procedure to remove a partial installation of SQL Server. |
4 | | -ms.date: 09/25/2020 |
| 4 | +ms.date: 06/16/2025 |
5 | 5 | ms.custom: sap:Installation, Patching, Upgrade, Uninstall |
6 | | -ms.reviewer: amylewis |
| 6 | +ms.reviewer: prmadhes |
7 | 7 | ms.topic: how-to |
8 | 8 | --- |
9 | 9 |
|
@@ -33,11 +33,33 @@ Use the following procedure to resolve the problem: |
33 | 33 | 1. Using an elevated command prompt, navigate to the location of 'setup.exe' for \<SQL Version upgrading to\> installation media directory and execute the command from Step 2. |
34 | 34 |
|
35 | 35 | > [!NOTE] |
36 | | - > It's very important to ensure you are running the commands against the right instance or else you may end up uninstalling a working instance. |
| 36 | + > It's very important to ensure you're running the commands against the right instance or else you may end up uninstalling a working instance. |
37 | 37 |
|
38 | 38 | 1. Launch the **Installation Center** wizard GUI from either the SQL Server Program group or by rerunning the setup program. |
39 | 39 |
|
40 | | -1. Navigate to the **Tools** menu and select the **Installed SQL Server features discovery report** and verify there are no more \<instance name\>.INACTIVE instances shown in the report. |
| 40 | +1. Navigate to the **Tools** menu, select the **Installed SQL Server features discovery report**, and verify there are no more `<instance name>.INACTIVE` instances shown in the report. |
| 41 | + |
| 42 | +1. If there are inactive instances in the discovery report, follow these steps to remove them: |
| 43 | + |
| 44 | + 1. Open the corresponding XML file. |
| 45 | + 1. Find each `MSSQLSERVER.INACTIVE` entry. |
| 46 | + 1. Locate and note down the value of `ProductCode`. Here's an example: |
| 47 | + |
| 48 | + ```xml |
| 49 | + ProductCode="{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" |
| 50 | + ``` |
| 51 | + 1. Open **Command Prompt** as an administrator and run the following command for each `ProductCode`: |
| 52 | + |
| 53 | + ```cmd |
| 54 | + msiexec /x {PRODUCT-CODE-GUID} |
| 55 | + ``` |
| 56 | + |
| 57 | + > [!NOTE] |
| 58 | + > Repeat the command for each **ProductCode** linked to the inactive instance. Here's an example: |
| 59 | + > |
| 60 | + > ```cmd |
| 61 | + > msiexec /x {9FFAE13C-6160-4DD0-A67A-DAC5994F81BD} |
| 62 | + > ``` |
41 | 63 |
|
42 | 64 | 1. Retry the setup program that was originally failing to complete. |
43 | 65 |
|
|
0 commit comments