Thank you, guys. I really appreciated your concern about my problem. Finally, I managed to install the SQL Server by uninstalling Visual Studio and reinstall it, and remember replacing the instance name with another one at the first configuration. I don't know which one of the two above steps causes this error so it's better to do both if anyone has a similar issue.
Failed to install SQL Server 2019 Express

I wanted to learn SQL to create my own database to serve for my future project but things seem not to be smooth as expected from the first step. I struggled with installing the SQL Server for days with different times of uninstalling and reinstalling. The installation Progress has just constantly thrown me warning window with the content was:
The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.
I believed that the old SQL Server was completely uninstalled by deleting any related thing including files in Program Files, Program Files(x86), and its registry.
I searched and followed many threads with the same issue on some forums but still got no result.
After skipping that warning by canceling it, the installation completed with failure shown in the picture below. Your help would be much appreciated. Here is the log file: 54662-log.txt
SQL Server Other
3 additional answers
Sort by: Most helpful
-
Cris Zhan-MSFT 6,661 Reputation points
2021-01-08T03:41:16.59+00:00 Hi @Student Strange ,
Try to download a new SQL Server 2019 Express installation file from the official site.
Then right click the SETUP.exe(run as administrator), please try to install only Database Engine Services , and not install the R and others features this time.
If the installation is successful, then continue to install R and others.
-
Atul Kumar 91 Reputation points
2021-01-08T06:00:21.687+00:00 Hope you have local admin permission on your system. Also you are not having any failed installation instance of older SQL Version.
-
Karen Arul 1 Reputation point
2021-01-08T08:05:45.353+00:00 Move the iso installation file to your local machine before starting the installation