完全卸載vmware

中文部分:

在安裝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.

一、爲什麼會發生不完全卸載的情況?
VMware不可以安裝在已經安裝有VMware產品的windows主機上,VMware是否已經安裝在一臺Windows主機上,是根據註冊表的一些鍵值來判斷的。當卸載VMware的時候,這些鍵值沒有被刪除,於是在下次安裝VMware的時候,就會出現問題。

二、解決辦法:

方法①:
1、以本地管理員帳戶登陸你的主機
2、關閉主機上的所有的防火牆軟件,一些防火牆軟件會干涉安裝的進程
3、利用Windows的“添加刪除軟件”功能刪除VMware,如果VMware在添加刪除程序的列表中
4、運行VMware註冊表清理腳本,如果卸載不成功,則可以運行VMware_Install_Cleaner.exe也就   是我們常說的反安裝軟件。這個腳本可以清除 Workstation 3.1, Workstation 3.2, Workstation 4.x, Workstation 5.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安裝的時候,寫入Windows的註冊表鍵值。 如果你的VMware Workstation 的版本是5系列,則只需在命令行下輸入VMware-workstation-<version>.exe /c ,就可以清除由MSI安裝包寫入註冊表的鍵值。注意:在命令行中要把你的當前目錄設置到VMware-workstation-<version>.exe文件所在目錄,如果使用這個命令不起作用,則再使用VMware_Install_Cleaner。。

其下載地址:http://kb.vmware.com/Platform/Publishing/attachments/1308_fVMware_Install_Cleaner.exe

5、重新啓動計算機
    當你操作完第4點或者成功安裝了VMware的時候請重新啓動計算機。
6、使用Microsoft CleanUp utility
    具體使用方法support.microsoft.com/default.aspx?scid=kb;en-us;290301.

方法②:手動清除註冊表
對註冊表進行操作可能會導致系統無法正常啓動,請在修改註冊表之前備份註冊表
1、以管理員的身份登陸本地計算機
2、停止以下服務
    VMware Authentication Service
    VMware Registration Service
    VMware DHCP Service
    VMware NAT Service
3、卸載VMware network bridge
開始>設置> 網絡連接>右鍵任何網絡適配器>屬性
選擇VMware Bridge Protocol 並卸載
4、卸載VMware安裝的設備
    計算機管理>設備管理器>查看>顯示隱藏的設備
    雙擊非即插即用驅動程序,刪除如下:
    hcmon
    VMware Network Application Interface
    VMparport
    vmx86
    VMware Bridge Protocol
    雙擊網絡適配器
    卸載含有VMware字樣的網絡設備
5、運行VMware_Install_Cleaner.exe
6、刪除你的安裝程序所在的文件夾默認的安裝位置爲C:\Program Files\VMware,具體的位置根據你安裝軟件的時候設定的位置,注意:如果你的虛擬系統也在這個目錄下,請刪除前保存虛擬系統文件
7、刪除應用程序信息文件夾 默認在C:\Documents and Settings\All Users\Application Data\VMware\.
8、刪除VMware程序組文件夾,默認位置在 C:\Documents and Settings\All Users\Start    Menu\Programs\VMware\.
9、刪除桌面的快捷方式圖標
10、刪除如下文件在系統文件夾
     %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
11、刪除__vmware_user__用戶和__vmware__用戶組在本地用戶組管理中
12、重新啓動計算機

 

英文部分:

 

 

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:
  1. 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.)

  2. 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.

  3. Uninstall using Add/Remove Programs > Remove. If the VMware product is still listed in Add/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.

  4. 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.

    VMware-workstation-<version>.exe /c

    For example:

    VMware-workstation-5.0.0-13124.exe /c VMware-workstation-5.5.0-18463.exe /c

    If running the installer with the /c switch doesn't work, then try running the VMware_Install_Cleaner.exe script.

  5. 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.

  6. 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 at 
    http://support.microsoft.com/default.aspx?scid=kb;en-us;290301.

  7. 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.
  1. Log onto the Windows host system as the Local Administrator or a member of the Local Administrators group.

  2. Stop the following services on the Windows host:
    - VMware Authentication Service
    - VMware Registration Service
    - VMware DHCP Service
    - VMware NAT Service

  3. 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.

  4. 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

  5. Run VMware_Install_Cleaner.exe again.

  6. 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 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.

    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.

  7. 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 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.

  8. 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.

  9. Delete the VMware shortcut icons from the desktop.

  10. 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

  11. Delete the __vmware_user__ local user and the __vmware__ local group from the Windows system if they exist.

  12. Reboot the Windows host system.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章