I am failing to install SQL Server 2022 because of a missing RegEntry file, Im getting this error 'Cannot find registry key 'SOFTWARE\Microsoft\Microsoft SQL Server\160\ConfigurationState'.

Dave Budah 5 Reputation points
2023-09-06T05:20:12.7833333+00:00

Screenshot 2023-09-05 133505

Developer technologies | .NET | Other
SQL Server | Other
{count} vote

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-09-06T06:55:36.61+00:00

    Hi @Dave Budah,

    Please try to launch the SQL Server Setup program (setup.exe) as administrator from SQL Server installation media-> Maintenance in the left-hand navigation area-> Repair.User's image

    You can try to uninstall and reinstall.
    Here are the steps to uninstall cleanly.

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in regedit:
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    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. Reboot the machine
      In addition, please use an administrator account to reinstall SQL Server on your computer (Right click->run as administrator).

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.

  2. Nick B 5 Reputation points
    2023-12-20T22:00:00.8533333+00:00

    So, I had issues when installing MS SQL Server Express 2022. I followed guides and everything on how to get it installed, etc. All that did was introduce other problems.

    Eventually, I ran into this error:

    "Cannot find registry key 'SOFTWARE\Microsoft\Microsoft SQL Server\160\ConfigurationState'"

    Which is how I ended up here. Nothing worked that was recommended.

    My Solution:

    I downloaded a VM, installed windows 10, installed MS SQL Server 2022, then copied and exported the ConfigurationState reg key.

    Guess what? It worked flawless.

    Hope this helps someone else.

    1 person found this answer helpful.

Your answer

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