Windows Installer (msiexec.exe) fails to start with Application Error 0xc0000142

Evan Lee 1 Reputation point

For some reason, Windows Installer has stopped working recently, showing the following error:


This error shows when attempting to launch the Windows Installer manually. If I attempt to do so via the Windows Installer Service, it simply hangs there for a while before failing. I cannot unregister and re-register the service, as doing so means I need to launch msiexec.exe, and that simply fails. I have tried the following:

  • Using the sfc and dism commands
  • Running an in-place 'upgrade' of Windows
  • Deleting msiexec.exe and letting sfc replace it

Whenever msiexec fails, an event is generated in Event Viewer, which shows as follows:

Anything I can find online usually has a piece of software I don't have installed causing the problem, or the same unregister and re-register commands which won't work for me.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,886 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,096 Reputation points

    Hi. Thank you for your question and reaching out.

    Try uninstalling unfamiliar programs. "Search Protect," "SW Booster," and "Performance Optimizer" should all be uninstalled.

    Open the Control Panel on Windows.
    2. Choose the list of installed programs.
    3. Select and remove "Search Protect." Verify once again whether you were successful in fixing Application Error 0xc0000142.

    You can also check for more information.


    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments