Installing or upgrading VMware Tools on a Windows XP or Windows 2003 R2 SP2 virtual machine fails with the error: Failed to install driver: 0x00000002
search cancel

Installing or upgrading VMware Tools on a Windows XP or Windows 2003 R2 SP2 virtual machine fails with the error: Failed to install driver: 0x00000002

book

Article ID: 308000

calendar_today

Updated On:

Products

VMware Desktop Hypervisor VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Cannot install or upgrade VMware Tools on a Windows XP or Windows Server 2003 R2 SP2 virtual machine.
  • Installing or upgrading VMware Tools on a Windows XP or Windows Server 2003 R2 SP2 virtual machine fails.
  • Various components, such as VMware SVGA II, VMware Pointing Device, vmxnet3 Ethernet adapter, and VMware VMCI Bus Device drivers, do not get installed or upgraded.
  • In the vminst.log file, you see entries similar to:
tools-build-621624: 04/12/12 12:20:12 Installing driver
tools-build-621624: 04/12/12 12:20:12 Cannot query key value HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\Wnd: 2
tools-build-621624: 04/12/12 12:20:12 Failed to get window text: 2
tools-build-621624: 04/12/12 12:20:12 Installing driver with INF: "C:\Programme\Gemeinsame Dateien\VMware\Drivers\video\vmx_svga.inf", flags: 1
tools-build-621624: 04/12/12 12:20:12 Found "C:\Programme\Gemeinsame Dateien\VMware\Drivers\video\vmx_svga.inf"
tools-build-621624: 04/12/12 12:20:12 Attempting to install HID1: PCI\VEN_15AD&DEV_0710&SUBSYS_00000000
tools-build-621624: 04/12/12 12:20:12 HID1 install status: 0xe000020b. Unknown error code: 0x800f020b
tools-build-621624: 04/12/12 12:20:12 Attempting to install HID2: PCI\VEN_15AD&DEV_0405&SUBSYS_00000000
tools-build-621624: 04/12/12 12:20:12 HID2 install status: 0xe000020b. Unknown error code: 0x800f020b
tools-build-621624: 04/12/12 12:20:12 Attempting to install HID3: PCI\VEN_15AD&DEV_0405&SUBSYS_040515AD
tools-build-621624: 04/12/12 12:20:15 HID3 install status: 0x00000002. Unknown error code: 0x80070002
tools-build-621624: 04/12/12 12:20:15 Failed to install driver: 0x00000002. Unknown error code: 0x80070002


Cause

This issue occurs if the RunOnce registry key is missing in the virtual machine registry. This key may be accidentally deleted by a third-party software components.

Resolution

To resolve this issue, add the RunOnce registry key to the registry of the virtual machine.

Note: This procedure modifies the Windows registry. Before modifying registry, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article 136393.

The preceding link was correct as of November 16, 2014. If you find the link is broken, please provide feedback and a VMware employee will update the link.

To add the RunOnce registry key:
  1. Click Start > Run, type regedit, and click OK. The Registry Editor window opens.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion.
  3. Determine if there is folder named RunOnce under CurrentVersion.
  4. If it does not exist, right-click CurrentVersion, click New > Key and create a folder named RunOnce.
  5. Run the VMware Tools installation.


Additional Information

VMware Tools を Windows XP または Windows 2003 R2 SP2 仮想マシンにインストールまたはアップグレードすると次のエラーで失敗する:ドライバのインストールに失敗しました: 0x00000002
在 Windows XP 或 Windows 2003 R2 SP2 虚拟机上安装或升级 VMware Tools 失败并显示以下错误“无法安装驱动程序: 0x00000002”