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 0 Reputation points
2023-09-06T05:20:12.7833333+00:00

Screenshot 2023-09-05 133505

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,052 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
10,963 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 25,611 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.