SQL Server 2022 Express installation error

54321 0 Reputation points
2023-04-09T07:45:31.2766667+00:00

Hello, I am facing with installation error of SQL Server 2022 Express Edition.
I have attached error files and a screenshot with an error right after it appeared. I've been trying to find some solutions in the internet, but nothing really fits to my issue.
I would much appreciate for any help, because I don't know what is going on. Screenshot 2023-04-09 130707

Detail.txt Summary.txt Thank You. BR, Barath

Windows for business Windows Client for IT Pros User experience Other
SQL Server Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-04-09T12:12:15.6433333+00:00

    It seems from the Summary file that you have tried to install quite a few number of times. Is that correct?

    At this point, I am not sure if the error we see is the genuine error or a consequence of the original failure. In any case, in details.txt the place where things start to downhill is with this error:

    File 'C:\Program Files (x86)\Microsoft SQL Server\160\Shared\sqlmgmprovider.mof' not found!

    Could you check if you have any all-digit folder in C:\Program Files (x86)\Microsoft SQL Server\160\Shared and see if the mof file might be there? Then again, I believe that Setup removes this file before it exits, at least when everything goes well.

    Also, since you are on Windows 11, can you check C:\Program Files\Microsoft SQL Server\MSSQL16.xxxxxxx\MSSQL\LOG if you have a file ERRORLOG in that folder? xxxxxx stands for all such folders that you have. If you find an ERRORLOG file, can you attach it? You need to rename it to ERRORLOG.txt for the forum software to accept it.


  2. Anonymous
    2023-04-10T07:03:25.32+00:00

    Hi @54321 I found this error in your detail log. User's image

    This error is usually caused by the previous failed installation of SQL Server has not been completely uninstalled, so we need to completely uninstall the previous failed installation first. You can check this link, troubleshoot after downloading and perform an uninstall of all SQL Server and use to uninstall the old version. https://support.microsoft.com/en-us/topic/fix-problems-that-block-programs-from-being-installed-or-removed-cca7d1b6-65a9-3d98-426b-e9f927e1eb4d For more information, you can also refer to this link: https://stackoverflow.com/questions/63636622/sql-install-error-the-mof-compiler-could-not-connect-with-the-wmi-server. Best regards, Aniya


  3. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-04-10T20:55:17.5133333+00:00

    This possibly suggest that you have resolved the issue with the mof file, because you are now coming as far as getting an errorlog.

    And there are somewhat good news. This is a known issue where Windows 11 for certain disk drives that SQL Server is not able to cope with. Microsoft has published an article with workarounds for the problem.

    0 comments No comments

  4. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-04-11T21:07:42.07+00:00

    The mof compiler is causing trouble again. However, judging from your errorlog, SQL Server is actually up and running. Open a command line window and run

    SQLCMD -S .\SQLEXPRESS24
    

    are you able to connect? If so, maybe it is best to leave things are they are.

    0 comments No comments

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.