Hi Uswa,
- What’s the exact (verbatim) error message you receive?
- How long have you had this issue?
Windows Update issue:
I’d suggest you to check the Windows Update history for any error messages.
Also see How to read the Windowsupdate.log file
Windows Installer issue:
Follow these methods:
Method 1: Unregister and reregister Windows Installer service.
To do this, follow these steps:
a. Click “Start”, type “cmd”in the Start search box.
b. Right-click “cmd” and select “Run as administrator”.
c. Type the following commands and hit Enter after each command:
msiexec /unreg
msiexec /regserver
Method 2: Perform System File Checker Scan (SFC) scan
SFC tool scans system files and replaces incorrect versions of the system files by using the correct versions.
Gokul - Microsoft Support
[If this post was helpful, please click the "Vote as Helpful" (green triangle) button. If it helps in resolving your issue, click "Propose As Answer" or "Mark as Answer" button. By proposing/marking a post as Answered, or Helpful you help others find the answer faster.]