在安装VMware 的过程中由于各种各样的原因而中断安装进程,或者卸载旧的VMware版本,安装新的版本,结果安装进程出现错误,显示为:Setup has detected that vmware workstation is already installed on this machine. please uninstall this product through add/remove programs and try again.
I tried to uninstall a VMware product from my Windows host, but the uninstallation failed, or it seemed to work but I am unable to install again on the same host. What is going on?
This article describes the procedures for cleaning up after an incomplete uninstallation of various VMware products, including VMware ACE Manager on an administrator's computer. If you need information on cleaning up after an incomplete uninstallation of a VMware ACE package on an end user's computer, please see knowledge base article 1526 at http://kb.vmware.com/kb/1526.
Note: The utility VMware_Install_Cleaner.exe, described in this article, cleans incomplete uninstallations of VMware Tools (versions 1.0.0.x — 3.1.0.x) in addition to incomplete uninstallations of VMware products.
Why This Problem Might Occur
VMware products might not install on Windows hosts if the installer detects certain other VMware products on the computer.
Sometimes registry keys that should be removed during the uninstallation of a product are left behind. This can happen if, for example, the host computer hangs or resets while you are uninstalling the previous product. When the installer finds these registry keys, it interprets their presence as an indication that the previous product is still installed.
Solving This Issue
To troubleshoot an incomplete installation:
Be a Local Administrator. Make sure you are logged onto the Windows host as a Local Administrator. (A Domain Administrator imposes the wrong permissions on components the installer must access.)
Disable firewalls on protected systems. If your security policy allows this, disable any firewall software you have installed. Some firewalls can interfere with the installation process.
Uninstall using Add/Remove Programs > Remove. If the VMware product is still listed inAdd/Remove Programs, try rebooting and uninstalling the VMware product: a. Reboot the Windows host. b. From the Control Panel, select Add/Remove Programs. c. Select the VMware product in the list. d. Click Remove. e. Reboot the Windows host again. f. Reinstall the VMware software.
Run the VMware registry cleaner script. If the uninstaller is not available, or if it does not run successfully, download and run the script VMware_Install_Cleaner.exe. Find it in the attachments section at the end of this document.
Remember to run this script and the installer when you are logged on as a member of the Local Administrators group.
The registry cleaner utility removes all registry keys used by the installers for Workstation 3.1, Workstation 3.2, Workstation 4.x, Workstation 5.x, Workstation 6.x, GSX Server 2.x, GSX Server 3.0, GSX Server 3.1, ACE Manager 1.0, ACE 1.0, VmPerl 2.0, VmPerl 3.0, VmCOM 2.0, and VmCOM 3.0.
If you are running the Workstation 5.x or 6.x installer, don't run this script yet. Run the installer command with the /c switch, which automatically removes the MSI installer registration information for VMware Workstation.
If running the installer with the /c switch doesn't work, then try running theVMware_Install_Cleaner.exe script.
Reboot. After you run the cleaner script or the installer, reboot. It's a good idea to reboot after you install or uninstall any programs on your system, and after you run any other programs that make changes to the registry.
Try the Microsoft CleanUp utility. If this previous steps prove unsuccessful, you might find a utility provided by Microsoft helpful. You can find instructions and a link to the utility in Microsoft knowledge base article 290301 athttp://support.microsoft.com/default.aspx?scid=kb;en-us;290301.
Clean the registry manually. See the following section.
Manually Cleaning the Registry
Caution: This procedure involves modifying the registry. Incorrect changes to the registry can leave your system unstable or unable to run. Always back up the registry before editing it, and exercise caution in making changes to the registry. VMware takes no responsibility for problems that might arise.
Log onto the Windows host system as the Local Administrator or a member of the Local Administrators group.
Stop the following services on the Windows host: - VMware Authentication Service - VMware Registration Service - VMware DHCP Service - VMware NAT Service
Uninstall the VMware network bridge adapter. a. Choose Start > Settings > Network and Dial-up Connections. b. Right-click any network adapter icon and choose Properties. c. Select VMware Bridge Protocol and click Uninstall.
Uninstall all VMware devices. a. Right-click My Computer and choose Manage. b. Click Device Manager. c. Double-click Network Adapters. d. Right-click each adapter whose name begins with VMware and choose Uninstall. e. Choose Show hidden devices from the View menu. f. Double-click Non-Plug and Play Drivers. g. Right-click the following devices and choose Uninstall. - hcmon - VMware Network Application Interface - VMparport - vmx86 - VMware Bridge Protocol
Run VMware_Install_Cleaner.exe again.
Delete the program folder in which the VMware product was installed. The default installation directory is C:/Program Files/VMware/. (The drive letter is different if your Program Files folder is on a different drive.) If you have installed only one VMware product, you can delete the entire VMwarefolder; if you have installed other products, such as VirtualCenter Client, delete only the relevant subfolders for the product you are trying to remove. On a GSX Server machine, you should remove the subfolders for VMware GSX Server, VMware Management Interface, VMware Scripting API, and either VMware Virtual Machine Console or VMware Remote Console.
Note: If you have stored virtual machines in a folder under the program folder and want to save them, move them to a different folder before you delete the VMware program folder.
Delete the application data folder. The default locations are C:/Documents and Settings/All Users/Application Data/VMware/ and C:/Documents and Settings/<username>/Application Data/VMware. If you have installed only one VMware product, you can delete the entire VMwarefolder; if you have installed other products, such as VirtualCenter Client, delete only the relevant subfolders for the product you are trying to remove. On a GSX Server machine, you should remove the subfolders for VMware GSX Server, VMware Management Interface, VMware Scripting API, and either VMware Virtual Machine Console or VMware Remote Console.
Delete the VMware program group folder. The default location is C:/Documents and Settings/All Users/Start Menu/Programs/VMware/. If you have installed only one VMware product, you can delete the entire VMware folder; if you have installed other products, such as VirtualCenter Client, delete only the relevant subfolders for the product you are trying to remove. On a GSX Server machine, you should remove the subfolders for VMware GSX Server, VMware Management Interface, VMware Scripting API, and either VMware Virtual Machine Console or VMware Remote Console.
Delete the VMware shortcut icons from the desktop.
Delete the files below from the Windows system folder. (Not all systems have all of these files installed.) %SystemDrive%/WINNT/system32/vmnat.exe %SystemDrive%/WINNT/system32/vmnetbridge.exe %SystemDrive%/WINNT/system32/vmnetdhcp.conf %SystemDrive%/WINNT/system32/VMNetDHCP.exe %SystemDrive%/WINNT/system32/vmnetdhcp.leases %SystemDrive%/WINNT/system32/vmnetnat.conf %SystemDrive%/WINNT/system32/vmxw2ksetup.dll %SystemDrive%/WINNT/system32/vnetprobe.exe %SystemDrive%/WINNT/system32/vnetprobelib.dll %SystemDrive%/WINNT/system32/vnetinst.dll %SystemDrive%/WINNT/system32/vnetlib.dll %SystemDrive%/WINNT/system32/vnetlib.exe %SystemDrive%/WINNT/system32/drivers/vmnet.sys %SystemDrive%/WINNT/system32/drivers/vmnetx.sys %SystemDrive%/WINNT/system32/drivers/VMparport.sys %SystemDrive%/WINNT/system32/drivers/vmx86.sys %SystemDrive%/WINNT/system32/drivers/vmnetadapter.sys %SystemDrive%/WINNT/system32/drivers/vmnetbridge.sys %SystemDrive%/WINNT/system32/drivers/vmnetuserif.sys %SystemDrive%/WINNT/system32/drivers/hcmon.sys %SystemDrive%/WINNT/system32/drivers/vmusb.sys
Delete the __vmware_user__ local user and the __vmware__ local group from the Windows system if they exist.