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

Evan Lee 1 Reputation point
2022-11-10T00:46:34.383+00:00

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

258951-image.png

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:
258896-image.png

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
    2022-11-16T09:40:15.407+00:00

    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 https://support.microsoft.com/en-us/office/64b3a500-ee74-4b66-b370-9d607ef92b6c for more information.

    ----------------------------------------------------------------------------------------------------------------------------------------

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

    0 comments No comments