Uninstall complitly and install SQLServer 2019

Aqib Jamshed 1 Reputation point

How can uninstall SQL Server 2019? I deleted each folder one by one and stopped all SQL Server related services. I can not delete again and again. These products that appear to be installed can not be found anywhere.

While trying to uninstall SQL Server 2019


The reason I want to delete this application is that I wanted to reinstall it. I can not install it because of error

Unable to install sql server (setup.exe).

While trying to install


It seems to be infinite loop from SQL Server. Have you any idea about this issue ?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,345 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CathyJi-MSFT 21,126 Reputation points Microsoft Vendor

    Hi @Aqib Jamshed ,

    How did you uninstall your SQL server instance? Please follow the steps from this MS document to uninstall SQL 2019 instance. If you are unable to uninstall SQL Server completely because you deleted SQL Server files and un-installation is giving error please follow below method.

    1. Uninstall the existing SQL Server and all the components from the add remove program.
    2. Backup the registry.
    3. Delete the following keys using regedit:
      o--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
    6. Rename all the SQL Server folders in the computer.
    7. Reboot the machine.

    Refer to the Uninstall and Fresh install parts from this blog to get detail information.

    The installation error message that you offered is too less for analysis, please share us the SQL server 2019 setup log(summary and detail) for analysis. Please read the detail log, you may find which file that the system could not found. The setup log is located at C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20220414_123517 as the screenshot mentioned.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments