Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql server setup fails : Oops ther was an error while checking the rules of sql server setup

I have been attempting to install SQL Server 2016 Express, on my computer, However it keeps failing, and it's not giving me an error message this text written below just keeps popping up and than the installer only gives me the option to close it.

Oops...

There was an error while checking Rules of Sql Server setup.

This happens every time I try to do the basic install, so I tried the custom, all it did was download the files than shut off the installer and just shuts off if I choose the option now.

I am the Admin account of my computer and there is only this account and the guest account. The only indication of the problem is the text and there is no Error Message or Number to accompany it and every time I've tried to google it none of the articles mention the text.

like image 389
Subramani Avatar asked Oct 18 '25 07:10

Subramani


2 Answers

Update 2024:

Search and run CMD as Administrator in your Windows Start:

enter image description here

Copy and paste the follow command in your command prompt:

mofcomp C:\Windows\System32\WBEM\cimwin32.mof

This will run a script related with Classes in Windows, at the end of the script it will say like "Done" after that try the installation again.

like image 99
Oleksandr Yunoshev Avatar answered Oct 19 '25 22:10

Oleksandr Yunoshev


I uninstalled all stuff about SQL from Programs and Features. And then deleted %ProgramFiles%\Microsoft SQL Server\ folder. Then Sql Express 2017 setup ran correctly.

For more information:

like image 20
boheminsan Avatar answered Oct 19 '25 21:10

boheminsan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!