VMware Tools fails to install (Error 1704) [VMware Tools]
search cancel

VMware Tools fails to install (Error 1704) [VMware Tools]

book

Article ID: 460564

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

The upgrade halts abruptly. Inspection of the VMware Tools setup and installer logs located in %TEMP% or C:\Windows\Temp\ (vminst.log and vmmsi.log) confirms that the Windows Installer has detected a suspended transaction, evidenced by the following entries:

  • "An installation for VMware Tools is currently suspended. You must undo the changes made by that installation to continue."

  • "User 'SYSTEM' has previously initiated an install for product 'VMware Tools'."

Environment

vSphere 8.x

Cause

Cause Identification

This issue occurs due to an orphaned Windows Installer (MSI) transaction.

An earlier VMware Tools upgrade running non-interactively under the SYSTEM account was terminated before finalizing. Common triggers include:

  • Concurrent system reboots or unannounced reboots initiated by OS patching (e.g., Windows Update).

  • Host-level or VM-level forced shutdowns/power cycles during tool deployment.

  • Endpoint Detection & Response (EDR) or antivirus solutions intercepting and killing the MSI process mid-transaction.

Because the previous transaction was not closed gracefully, the Windows Installer database remains locked in a suspended state, rejecting subsequent upgrade attempts until the rollback sequence is resolved.

 

Resolution

Resolution

Phase 1: Clear the Suspended Transaction

  1. Log in to the affected Windows Server virtual machine using an administrative account via the vSphere Remote Console (VMRC) or standard RDP session.

  2. Mount or launch the VMware Tools installer executable (setup.exe / setup64.exe) interactively.

  3. When the Windows Installer detects the prior attempt, a prompt will appear stating that a suspended installation exists. Select Yes / Undo to roll back previous changes.

  4. Allow the rollback wizard to complete and release the locked MSI state.

Phase 2: Complete the Installation

  1. Once the rollback process finishes cleanly, re-launch the VMware Tools installer.

  2. Follow the standard installation wizard prompts (Typical, Complete, or Custom) to proceed with standard validation and complete the upgrade.

  3. Reboot the virtual machine if prompted to finalize driver initialization.

Prevention & Best Practices

  • Align Maintenance Schedules: Do not deploy VMware Tools upgrades concurrently with Windows Update cycles, reboot-heavy patch policies, or third-party agent deployments.

  • Disable Automatic Power-On Upgrades: In the vSphere Client:

    1. Navigate to VM > Edit Settings > VM Options > VMware Tools.

    2. Uncheck "Check and upgrade VMware Tools on each power on".

    3. Adopt a scheduled manual or orchestrator-based (e.g., vSphere Lifecycle Manager) upgrade policy to prevent race conditions during boot sequences.

  • EDR/Antivirus Exclusions: Verify that security software does not terminate spawned msiexec.exe or VMware installer binaries during automated maintenance jobs.