I have tried running this as an admin, and I have tried repairing, and uninstalling too. I cannot resolve this issue.
Try the following.
Make sure you run the installer as "Run as administrator"
In your operating system folder, under program files (say C:\Program Files ), right click Program files folder, go to advanced and then uncheck the compress content option.
If this not helps, then go and analyze the SQL Server setup log files, you might get some more details that helps you to identify the problem. Refer: https://docs.microsoft.com/en-us/sql/database-engine/install-windows/view-and-read-sql-server-setup-log-files?view=sql-server-ver15
Check your error log, whether the SQL Server Setup process cannot enumerate the following registry subkey:
You should install the Edge browser version 86.0.622.56 or a later version that includes the fix for this problem:
Start Microsoft Edge.
Select the Settings (ellipsis) button in the top-right corner.
On the Settings menu, select Help and feedback > About Microsoft Edge.
To complete the Edge update installation, select Restart.
start Registry Editor, right-click the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge subkey, and then select Permissions.
In the Permissions window that opens, select Advanced.
At the top of the Advanced Security Settings window, select Change next to the listed owner.
In the Select User, Computer, Service Account, or Group window, type the name of your Windows user account (or your email address if you have a Microsoft account) in the Enter the object name to select box, and then select Check Names to validate the account name.
Select OK two times.
In the Permissions window, select the Users group, and then select the Allow check box for the Full Control permissions.
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".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi，If you can share your errorlog for more information
This error means that your account does not have sysadmin privileges on system where you are installing SQL Server express.
There is anti virus running on system which is blocking registry access. Disable any antivirus/security software and firewall
For win11, we are aware of at least one issue that many users have seen with SQL 2019 not working when installing on Windows 11 or SQL 2019 no longer working when the OS is upgraded to Windows 11
You can try to install SQL on a secondary drive (if able) that is a separate physical disk from the system’s C: drive, creating a VHD to use for the SQL Server installation, or enabling TF1800 first
23 people are following this question.