Error Code 0xc0000142 is commonly caused due to the .NET framework installation failure. These are the following ways in which you can attempt to correct this error.
This 0xc0000142 error code might occur because of improper removal of the previous version of office. ,
This Error Code 0xc0000142 appeared with updates on Windows 11 and the same steps to follow like we did on windows 10