Why This Error Happens
Windows Installer Error 1642 typically occurs when a patch (MSP file) or upgrade package cannot find the specific baseline version of the software it expects to update. This often happens due to a corrupted Windows Installer cache, a previous incomplete uninstallation that left residual registry entries, or an attempt to apply an upgrade patch to a version of the software that doesn’t match the patch’s requirements. It can also result from missing or damaged entries in the Windows Installer database (the %windir%\Installer folder).
Step-by-Step Resolution Guide
Step 1: Verify the Currently Installed Version
- Open Settings > Apps > Installed Apps and locate the program you are trying to upgrade.
- Check the version number listed and compare it against the minimum version required by the upgrade/patch file (usually listed in the installer’s release notes).
- If the version doesn’t match the expected baseline, download the correct full installer instead of the patch/upgrade file.
Step 2: Run the Windows Installer Cleanup and Repair
- Open Command Prompt as Administrator (
Win + X> Terminal (Admin)). - Run the System File Checker to repair corrupted installer components:
sfc /scannow
- Re-register the Windows Installer service by running:
msiexec /unregister
msiexec /regserver
- Restart your computer once the commands complete.
Step 3: Use the Microsoft Program Install and Uninstall Troubleshooter
- Download the official troubleshooter from Microsoft’s support site.
- Run the tool and select the problematic application from the list.
- Choose “Uninstall” to remove leftover, broken installation data tied to the app.
- Once removed, download the latest full installer (not the incremental patch) and perform a clean installation.
Step 4: Clear the Windows Installer Cache Folder
- Navigate to
C:\Windows\Installerin File Explorer. - Back up the folder contents to a temporary location (do not delete permanently, as some active applications rely on these cached files).
- Restart the machine, then attempt the upgrade installation again to see if the corrupted cache was the trigger.
Alternative or Verification Steps
- Verify the Fix: Open Event Viewer (
Win + X > Event Viewer) and check the Application logs for MsiInstaller entries. A successful upgrade will show an Event ID 1035 or 11707 confirming successful installation with no accompanying 1642 errors. - Alternative Solution: If the error persists, uninstall the older/broken version completely via the Program Install and Uninstall Troubleshooter, restart the PC, and install the latest full standalone version of the software directly rather than applying an incremental upgrade patch.