Share via

Error when trying to delete SQL Server and SSMS

Georgi Atanasov 20 Reputation points
2024-09-10T06:14:27.65+00:00

Since i created 4 instances of the database engine, I decided to delete 3 of them since they are redundant to me. I could not delete them since i have already deleted related files to them and the automatic deletion could not work. After that i deleted SQL Server and the SSMS, killed all the processes, went into the registry editor, deleted some SQL related stuff there (i do not know whether i deleted everything) and now i am getting this text in the summary file:

Configuration file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20240910_013713\ConfigurationFile.ini Detailed results: Feature: Database Engine Services Status: Failed Reason for failure: An error occurred during the setup process of the feature. Next Step: Use the following information to resolve the error, and then try the setup process again. Component name: SQL Server Database Engine Services Instance Features Component error code: 1639 Component log file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20240910_013713\sql_engine_core_inst_Cpu64_1.log Error description: Invalid command line argument. Consult the Windows Installer SDK for detailed command line help. Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=16.0.1000.6&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639 Rules with failures or warnings: Global rules: Warning IsFirewallEnabled The Windows Firewall is enabled. Make sure the appropriate ports are open to enable remote access. See the rules documentation at https://go.microsoft.com/fwlink/?linkid=2162127 for information about ports to open for each feature. Rules report file: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20240910_013713\SystemConfigurationCheck_Report.htm

here is the photo:
errorSQL.jpg

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

Olaf Helper 47,616 Reputation points
2024-09-10T17:14:47.8233333+00:00

After that i deleted SQL Server and the SSMS, killed all the processes, went into the registry editor, deleted some SQL related stuff there

That was a very bad idea.

Never "delete" anything, use the installation media for a clean uninstall.

Never manipulate registry.

You crashed your system.

Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Georgi Atanasov 20 Reputation points
    2024-09-10T17:26:59.72+00:00

    Since the computer was new, i just reset it :). I did not go into the same iterative process over and over: reset the PC, downloaded everything as it has to be downloaded and all works. If i was with an older computer, idk what i would do. Thanks for the answers!

    Was this answer helpful?

    0 comments No comments

  2. LiHongMSFT-4306 31,621 Reputation points
    2024-09-10T08:13:08.1333333+00:00

    Hi @Georgi Atanasov

    Please follow the below steps to remove all components of previous installed SQL Server completely:

    Remove all SQL Server components from 'Programs and Features'

    Backup the registry

    Delete the following keys in regedit:

    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server

    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer

    Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server

    Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server

    Reboot the machine

    In addition, please use an administrator account to reinstall SQL Server (Right click->run as administrator).

    You'd better disable your anti-virus software and firewall before installation. Also, it is recommended that you install in the default location.

    Best regards,

    Cosmog


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

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.