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.
Start the Windows Installer service1. Click Start, type
Services.msc and press {ENTER}2. Double-click Windows Installer3. Set the Startup type of Windows Installer to Manual4. Click Start to start the service. Note down the error message if any.5. Click OK.1. Click Start, click Run, type cmd in the Open text box, and then click OK.2. Type cd %windir%\system32, and then press ENTER.3. Type attrib -r -s -h dllcache, and then press ENTER.4. Type ren msi.dll msi.old, and then press ENTER.5. Type ren msiexec.exe msiexec.old, and then press ENTER.6. Type ren msihnd.dll msihnd.old, and then press ENTER.7. Type exit, and then press ENTER.8. At the command prompt, type exit, and then press ENTER.9. Click Start, and then click Turn off computer or Shut Down.10. Select the Restart option, and then click OK, or click Restart.
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.