VMware Workstation 在 Windows 主機上不完全解除安裝後執行清理 (1308)
Last Updated: 2017/3/24
Details:
免責宣告:本文為 Cleaning up after an incomplete uninstallation on a Windows host (1308)的翻譯版本。儘管我們會不斷努力為本文提供最佳翻譯版本,但本地化的內容可能會過時。有關最新內容,請參見英文版本。
- 從 Windows 主機上解除安裝 VMware 產品失敗。
- 從 Windows 主機上解除安裝 VMware 產品顯示成功,但無法在同一主機上重新安裝該產品。
- 在之前已安裝過 VMware 產品的 Windows 主機上安裝 VMware 產品生成錯誤或失敗。
- 如果嘗試安裝或解除安裝 VMware View Client,將會出現類似於以下內容的條目:
錯誤 28030。安裝程式無法安裝 USB 驅動程式。要確保成功安裝,請重新啟動計算機並重新啟動此安裝程式。
(Error 28030.The installer failed to install the USB driver. To ensure a successful installation, please restart your machine and relaunch this installer.)錯誤 28053。DLL 無法註冊。有關詳細資訊,請參見最新的 %TEMP%\vminst*.log 檔案。
(Error 28053. A DLL failed to register. Please see the most recent %TEMP%\vminst*.log file for details.)錯誤 1706。未找到產品 VMware View Client 的有效源。Windows Installer 無法繼續。
(Error 1706. No valid source could be found for product VMware View Client. The Windows Installer cannot continue.)
- 升級 VMware Workstation 失敗。
- 您將看到以下錯誤:
MSI '' 失敗 (The MSI '' Failed)
null
Solution:
原因
如果安裝程式在 Windows 計算機上檢測到了某些 VMware 產品,則可能無法在該主機上安裝其他 VMware 產品。即使這些產品已經移除,可能也會錯誤地檢測到這些產品。如果在解除安裝產品期間留下了應移除的登錄檔項,就可能會出現這種情況。之所以會留下這些登錄檔項,可能是因為在解除安裝之前的產品時主機計算機被掛起或發生了重置。使用者許可權問題也會導致登錄檔項被留下。如果安裝程式發現存在這些登錄檔項,它會認為之前的產品仍然處於已安裝狀態。
解決方案
如果從未安裝 VMware 產品,但出現了與 VMware ACE、VMware Server、VMware Player 或 VMware Workstation 相關的安裝問題,請參見 Troubleshooting a VMware hosted product that does not install (1005027)。
如果發現 MSI 錯誤,請參見 Troubleshooting an MSI error during a VMware product or Tools installation (1031302)。
如果您擁有的是 Linux 主機,並且正在使用 VMware Workstation,請參見 Manually uninstalling VMware Workstation from Linux hosts (38)。
如果這些文章無法解決您的問題,請繼續閱讀本文的其餘部分。執行必備條件步驟,然後繼續執行故障排除步驟。請勿跳過必備條件步驟。
必備條件步驟
- 請確保以本地管理員身份登入到 Windows 主機。域管理員不一定具有安裝程式必須訪問的元件的正確許可權。
有關詳細資訊,請參見:
- Windows XP 和 Vista:Microsoft 文章 User accounts: frequently asked questions
- Windows 7 和 Windows 8:Microsoft 文章 How do I log on as an administrator?
- Windows 10:要啟用 Windows 10 管理員帳戶,請執行以下操作:
- 單擊Windows 搜尋關鍵字,鍵入 cmd,並按 Enter。
- 右鍵單擊命令提示符,然後單擊以管理員身份執行。
- 執行net user命令,顯示系統中所有使用者帳戶的列表。
- 要啟用不活動的管理員帳戶,請執行 net user administrator /active:yes 命令。
- 禁用受保護系統上的防火牆和防病毒程式。如果您的安全策略允許,請禁用您安裝的任何防火牆和防病毒軟體。某些安全程式可能會干擾安裝過程。通過使用 Windows 系統配置 (
msconfig
) 實用程式禁用所有非 Microsoft 啟動實用程式,可執行此操作。有關詳細資訊,請參見 Using the Windows System Configuration utility (1004010)。重新啟動 Windows 以便僅執行啟用的 Microsoft 服務。
故障排除步驟
注意:在完成每個步驟後,重新引導 Windows 主機。
- 使用“新增/刪除程式”或從“程式和功能”解除安裝程式。有關詳細資訊,請參見:
- Windows XP:Microsoft 文章 How to change or remove a program in Windows XP
- Windows Vista:Microsoft 文章 Uninstall or change a program
- Windows 7 和 8:Microsoft 文章 Uninstall or change a program
注意:截至 2015 年 3 月 16 日,上述連結正確無誤。如果您發現某個連結已損壞,請提供反饋,VMware 員工會更新該連結。
- 根據所使用的產品,請參考以下步驟:
- 如果要解除安裝 Workstation 5.x 或更高版本,請使用 Workstation 解除安裝程式。
以本地管理員組成員身份登入時,使用特定選項從命令提示符執行安裝程式可自動移除 VMware Workstation 的 MSI 註冊資訊。有關詳細資訊,請參見 Opening a command or shell prompt (1003892)。- 如果執行的是 Workstation 5.x 或 6.x,請使用
/c
選項執行安裝程式。
例如:VMware-workstation-5.0.0-13124.exe /c
- 如果使用的是 Workstation 12.x、11.x、10.x、9.x、8.x 或 7.x,請使用
/clean
選項執行安裝程式。
例如:VMware-workstation-full-7.1.2-301548.exe /clean
- Workstation 5.x
- Workstation 6.x
- Workstation 7.x
- Workstation 8.x
- Workstation 9.x
- Workstation 10.x
- Workstation 11.x
- Workstation 12.x
注意:下載您已安裝的版本的安裝程式以確保已移除正確的登錄檔項。無需許可證即可下載程式或執行安裝程式,因為您只是解除安裝該程式。 - 如果要解除安裝 Workstation 4.x 或以下版本,請執行 VMware 登錄檔清理指令碼。
注意:- 在進行任何登錄檔修改之前,請確保擁有最新的有效登錄檔和虛擬機器備份。有關備份和還原登錄檔的詳細資訊,請參見 Microsoft 知識庫文章 136393。
- 本文隨附了清理指令碼
VMware_Install_Cleaner.zip
。
請以本地管理員組成員身份登入後執行此指令碼。登錄檔清理實用程式會移除以下產品的安裝程式所使用的所有登錄檔項:Workstation 3.1、Workstation 3.2、Workstation 4.x、GSX Server 2.x、GSX Server 3.0、GSX Server 3.1、ACE Manager 1.0 和 ACE 1.0。
- 如果要解除安裝 Workstation 5.x 或更高版本,請使用 Workstation 解除安裝程式。
如果上述步驟無法解除安裝產品,並且仍出現錯誤,則繼續手動清理 Windows 系統。手動過程要求手動移除與產品相關的 VMware 檔案、VMware 服務、登錄檔項以及各種元件。
手動清理 Windows 系統
要從 Windows 計算機手動移除產品,請執行以下操作:
- 以本地管理員或本地管理員組成員身份登入到 Windows 主機作業系統
有關詳細資訊,請參見:
- Windows XP 和 Vista:Microsoft 知識庫文章 User accounts: frequently asked questions
- Windows 7:Microsoft 文章 How do I log on as an administrator?
- Windows 8:Microsoft 文章 How do I know I'm signed in as an administrator?
- Windows 10:要啟用 Windows 10 管理員帳戶,請執行以下操作:
- 單擊Windows 搜尋關鍵字,鍵入 cmd,並按Enter。
- 右鍵單擊命令提示符,然後選擇以管理員身份執行。
- 執行net user命令,顯示系統中所有使用者帳戶的列表。
- 要啟用不活動的管理員帳戶,請執行net user administrator /active:yes命令。
注意:截至 2015 年 3 月 16 日,上述連結正確無誤。如果您發現某個連結已損壞,請提供反饋,VMware 員工會更新該連結。
- 在 Windows 主機作業系統上停止 VMware 服務:
- 開啟開始 > 執行,鍵入
services.msc
,然後單擊確定。隨即會開啟服務管理單元。 - 右鍵單擊這些服務,然後選擇停止。
- VMware 授權服務
- VMware 身份驗證服務
- VMware 註冊服務
- VMware DHCP 服務
- VMware NAT 服務
- VMware USB Arbitration 服務
- VMware Workstation Server
- VMware WSX 服務
- 開啟開始 > 執行,鍵入
- 解除安裝 VMware 網橋介面卡:
- 在 Windows 主機中開啟“網路連線”選項
- Windows XP:單擊開始>設定>網路和撥號連線。
- Windows Vista、Windows 7 和 Windows 2008 Server:單擊開始 > 執行,鍵入
ncpa.cpl
,然後單擊確定。隨即會開啟網路連線管理單元。 - Windows 8 和 Windows 2012 Server:開啟“執行”(Where is the Run command?),鍵入
ncpa.cpl
,然後單擊確定。隨即會開啟網路連線管理單元。
- 右鍵單擊網路介面卡圖示,並選擇屬性。
- 選擇VMware 網橋協議,並單擊解除安裝。
- 在 Windows 主機中開啟“網路連線”選項
- 解除安裝所有 VMware 裝置:
- 右鍵單擊我的電腦,然後選擇管理。
- 單擊裝置管理器。
- 從檢視選單中選擇顯示隱藏的裝置。
- 雙擊網路介面卡。
- 右鍵單擊名稱以 VMware 開頭的每個介面卡,然後選擇解除安裝。
- 在 Windows 主機上刪除包含 VMware 產品檔案的資料夾。
注意:
- 對於所有資料夾,如果僅安裝了一個 VMware 產品,可以刪除列出的整個 VMware 資料夾。如果還安裝了其他產品,如 VirtualCenter Client,則僅刪除嘗試移除的產品的相關子資料夾。
- 在 GSX Server 計算機上,移除 VMware GSX Server、VMware 管理介面、VMware Scripting API 以及 VMware 虛擬機器控制檯或 VMware 遠端控制檯的子資料夾。
- VMware 產品安裝的程式資料夾。
注意:如果在程式資料夾下的資料夾中儲存了虛擬機器,並且希望保留這些虛擬機器,請在刪除 VMware 程式資料夾之前將它們移至其他資料夾。
預設安裝目錄為:
- 32 位版本的 Windows:
C:\Program Files\VMware\
- 64 位版本的 Windows:
C:\Program Files(X86)\VMware\
- 32 位版本的 Windows:
- 應用程式資料資料夾。
預設位置為:
- Windows XP:
- C:\Documents and Settings\All Users\Application Data\VMware\
- C:\Documents and Settings\username\Application Data\VMware\
- Windows Vista/7/8/Server 2008:
- C:\Users\username\AppData\Local\VMware\
- C:\Users\username\AppData\Roaming\VMware\
Windows 10:
C:\Program Files(X86)\VMware\
- Windows XP:
- “開始”選單中的 VMware 程式組資料夾。
預設位置為:
- Windows XP:
C:\Documents and Settings\All Users\Start Menu\Programs\VMware\
- Windows Vista/7/8/Server 2008:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\VMware\
Windows 10:C:\ProgramData\VMware
- Windows XP:
- 從桌面刪除 VMware 快捷方式圖示。
- 刪除這些資料夾:
注意:您的系統可能不會具有所有這些檔案。
- C:\Windows\system32\vmnat.exe
- C:\Windows\system32\vmnetbridge.exe
- C:\Windows\system32\VMNetDHCP.exe
- C:\Windows\system32\vmnetdhcp.leases
- C:\Windows\system32\vmxw2ksetup.dll
- C:\Windows\system32\vnetprobe.exe
- C:\Windows\system32\vnetprobelib.dll
- C:\Windows\system32\vnetinst.dll
- C:\Windows\system32\vnetlib.dll
- C:\Windows\system32\vnetlib.exe
- C:\Windows\system32\drivers\vmnet.sys
- C:\Windows\system32\drivers\vmnetx.sys
- C:\Windows\system32\drivers\VMparport.sys
- C:\Windows\system32\drivers\vmx86.sys
- C:\Windows\system32\drivers\vmnetadapter.sys
- C:\Windows\system32\drivers\vmnetbridge.sys
- C:\Windows\system32\drivers\vmnetuserif.sys
- C:\Windows\system32\drivers\hcmon.sys
- C:\Windows\system32\drivers\vmusb.sys
- 從 Windows 系統刪除__vmware_user__ local使用者和__vmware__ local組(如果存在)。
- 在 Windows 主機上移除 VMware 產品的這些登錄檔項。有關要移除的產品,請參考下表。
注意:在進行任何登錄檔修改之前,請確保擁有最新的有效登錄檔和虛擬機器備份。有關備份和還原登錄檔的詳細資訊,請參見 Microsoft 知識庫文章 136393。
- Workstation 4.5/5.0/5.5
- HKEY_CLASSES_ROOT\Installer\Features\317A1D89C83432A4A86B143BC7A4D274
- HKEY_CLASSES_ROOT\Installer\Products\317A1D89C83432A4A86B143BC7A4D274
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\317A1D89C83432A4A86B143BC7A4D274
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\317A1D89C83432A4A86B143BC7A4D274
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\317A1D89C83432A4A86B143BC7A4D274
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{98D1A713-438C-4A23-8AB6-41B37C4A2D47}
- HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
- Workstation 6.x/7.x
- HKEY_CLASSES_ROOT\Installer\Features\2BC5FF3A53BF85647815E9EDD1563BAA
- HKEY_CLASSES_ROOT\Installer\Products\2BC5FF3A53BF85647815E9EDD1563BAA
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\2BC5FF3A53BF85647815E9EDD1563BAA
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\2BC5FF3A53BF85647815E9EDD1563BAA
- HKEY_CLASSES_ROOT\Installer\Products\7A26F0EA2A1AF704F9C48439B99DDAD8
- HKEY_CLASSES_ROOT\Installer\Products\7A79579133DA8984D9E8376086814B46
- HKEY_CLASSES_ROOT\Installer\UpgradeCodes\3F935F414A4C79542AD9C8D157A3CC39
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\2BC5FF3A53BF85647815E9EDD1563BAA
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A3FF5CB2-FB35-4658-8751-9EDE1D65B3AA}
- HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
- Workstation 8.x/9.x/10.x/11.x/12.x
- HKEY_CLASSES_ROOT\Installer\Features\A57F49D06AE015943BFA1B54AFE9506C
- HKEY_CLASSES_ROOT\Installer\Products\A57F49D06AE015943BFA1B54AFE9506C
- HKEY_CLASSES_ROOT\Installer\UpgradeCodes\3F935F414A4C79542AD9C8D157A3CC39
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0D94F75A-0EA6-4951-B3AF-B145FA9E05C6}
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\Installer\VMware Workstation
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\vmware.exe
- VMware Player 2.x/3.x/4.x/5.x/6.x/7.x 和 Workstation Player 12.x
- HKEY_CLASSES_ROOT\Installer\Features\AE11A35A5900F39468AF1AE5A8684A50
- HKEY_CLASSES_ROOT\Installer\Products\AE11A35A5900F39468AF1AE5A8684A50
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\AE11A35A5900F39468AF1AE5A8684A50
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\AE11A35A5900F39468AF1AE5A8684A50
- HKEY_CLASSES_ROOT\Installer\Products\7A26F0EA2A1AF704F9C48439B99DDAD8
- HKEY_CLASSES_ROOT\Installer\Products\7A79579133DA8984D9E8376086814B46
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\AE11A35A5900F39468AF1AE5A8684A50
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A53A11EA-0095-493F-86FA-A15E8A86A405}
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes\3F935F414A4C79542AD9C8D157A3CC39
- HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
- ACE Manager 1.0.1
- HKEY_CLASSES_ROOT\Installer\Features\BC5E922F5258EE74BAC9B3AA1D6E0B1B
- HKEY_CLASSES_ROOT\Installer\Products\BC5E922F5258EE74BAC9B3AA1D6E0B1B
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\BC5E922F5258EE74BAC9B3AA1D6E0B1B
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\BC5E922F5258EE74BAC9B3AA1D6E0B1B
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\BC5E922F5258EE74BAC9B3AA1D6E0B1B
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F229E5CB-8525-47EE-AB9C-3BAAD1E6B0B1}
- HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
- ACE Player 1.0
- HKEY_CLASSES_ROOT\Installer\Features\2C06509C057477E4FBEAC7E383CDFF3D
- HKEY_CLASSES_ROOT\Installer\Products\2C06509C057477E4FBEAC7E383CDFF3D
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\2C06509C057477E4FBEAC7E383CDFF3D
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\2C06509C057477E4FBEAC7E383CDFF3D
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\2C06509C057477E4FBEAC7E383CDFF3D
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C90560C2-4750-4E77-BFAE-7C3E38DCFFD3}
- HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
- Workstation 4.5/5.0/5.5
- 重新引導 Windows 主機系統。
Related Information:
Cleaning up after an incomplete uninstallation on a Windows host
來源: https://kb.vmware.com/s/article/1308?lang=zh_CN