Before you start: create a System Restore point so you can undo changes, and sign in with an administrator account. Some steps need Command Prompt (Admin), which you can open with Win + X.
You may receive this message when you install, uninstall, or update a program. You can perform the following to try to fix the issue.
1. Run the "Fix problems that programs cannot be installed or uninstalled" troubleshooter
https://support.microsoft.com/mats/program_install_and_uninstall
2. Make sure that the Windows Installer service is not set to Disabled
- Click the Start Menu, type
services.mscin the Search box or click Run then typeservices.mscin the dialog, and then press Enter to open Services. - Right-click Windows Installer, and then click Properties.
- If the Startup type box is set to Disabled, change it to Manual.
- Click OK to close the Properties window.
- Right-click the Windows Installer service, and then click Start. The service should start without errors.
- Try to install or to uninstall again.
Still not fixed?
Run the general Windows repair sequence: install pending updates, then run DISM /Online /Cleanup-Image /RestoreHealth followed by sfc /scannow, and restart. If the problem started recently, restore from a System Restore point. You can also browse more DLL & Runtime Errors guides.