How to fix Error 1602 on Windows 11

Troubleshooting Guide: Error 1602 – Installation Cancelled

Why This Error Happens

Error 1602 occurs when a Windows Installer (MSI-based) setup process is interrupted before it completes, most commonly because a user or an automated script clicks “Cancel” during the install. This can also be triggered indirectly by insufficient user permissions, a security prompt (UAC) being dismissed, or a background process (like an antivirus scan) causing the installer to time out and appear “cancelled.” Corrupted installer cache files in the %WINDIR%\Installer directory can also cause the installer to hang, prompting an accidental cancellation.

Step-by-Step Resolution Guide

Step 1: Re-run the Installer with Administrative Privileges

  • Right-click the installer .exe or .msi file and select Run as administrator.
  • Ensure User Account Control (UAC) prompts are accepted immediately; do not let the prompt sit idle, as some installers time out and trigger a self-cancel event.
  • If using a network share, copy the installer locally to C:\Temp first to rule out latency-based cancellations.

Step 2: Clear the Windows Installer Cache

  • Press Win + R, type %temp%, and delete leftover files from the previous failed installation attempt.
  • Navigate to C:\Windows\Installer and check for orphaned .msi patches (use the Microsoft Program Install and Uninstall Troubleshooter if manual deletion is risky).
  • Restart the Windows Installer service by running net stop msiserver followed by net start msiserver in an elevated Command Prompt.

Step 3: Disable Conflicting Background Software

  • Temporarily disable third-party antivirus or endpoint protection software, as real-time scanning often intercepts installer processes and forces a cancellation state.
  • Check Task Manager for any lingering msiexec.exe processes from the previous attempt and end them manually before retrying.
  • Re-attempt the installation immediately after disabling the conflicting service.

Step 4: Check Group Policy and Permissions

  • Navigate to Local Group Policy Editor (gpedit.msc) and go to Computer Configuration > Administrative Templates > Windows Components > Windows Installer.
  • Ensure “Disable Windows Installer” is set to Not Configured or Disabled.
  • Verify the logged-in user has write access to the Program Files and AppData directories relevant to the install path.

Alternative or Verification Steps

  • Verification: Open Event Viewer (eventvwr.msc) and check the Application log for a successful “Installation completed successfully” event immediately following the retry.
  • Alternative: If the error persists, run the installer directly via Command Prompt using msiexec /i "path\to\file.msi" /L*V "install_log.txt" to generate a verbose log file, which will pinpoint the exact moment of cancellation rather than a generic system-level abort.