`

VMware Workstation 无法彻底卸载 提示"The MSI failed." 解决方法

阅读更多
卸载vm8时出现异常失败了,安装过程中提示The MSI failed,Warning 1946.Property 'System.AppUserModel.Id'等,各种异常信息。

从网上找很多方法,比如去注册表删除啊,卸载vmware服务啊。我觉得都不是很简单。

突发奇想,找了一个wmware9绿色版,用它的“卸载wmwar”批处理文件很管用,卸载成功后再重新启动一下计算机,就可以顺利从系统“添加/删除程序”里面彻彻底底卸载掉了。哈哈

现分享一下这个批处理文件,文件名“卸载VMware.cmd”,下载源文件,请下载页面下的附件。
cls
@echo off
CLS
color 0a
Title 卸载 VMware
set vmbit=
if "%PROCESSOR_ARCHITECTURE%" neq "x86" set vmbit=64

echo 你确定要卸载 VMware 吗?
echo 按任意键继续卸载 VMware !!!&pause>nul

echo 正在删除服务和设备,可能需要几分钟,请稍后...
echo 如果三分钟后还没动静,请在卸载批处理上敲一下回车键后继续等待...

vnetlib%vmbit%.exe -- stop authd >nul 2>nul
vnetlib%vmbit%.exe -- uninstall authd >nul 2>nul
net stop VMAuthdService >nul 2>nul
sc delete VMAuthdService >nul 2>nul
net stop VMwareHostd >nul 2>nul
sc delete VMwareHostd >nul 2>nul

vnetlib%vmbit%.exe -- stop dhcp >nul 2>nul
vnetlib%vmbit%.exe -- uninstall dhcp >nul 2>nul
vnetlib%vmbit%.exe -- stop nat >nul 2>nul
vnetlib%vmbit%.exe -- uninstall nat >nul 2>nul
vnetlib%vmbit%.exe -- stop bridge >nul 2>nul
vnetlib%vmbit%.exe -- uninstall bridge >nul 2>nul
vnetlib%vmbit%.exe -- stop userif >nul 2>nul
vnetlib%vmbit%.exe -- uninstall userif >nul 2>nul
vnetlib%vmbit%.exe -- stop adapter >nul 2>nul
vnetlib%vmbit%.exe -- uninstall adapter >nul 2>nul
rundll32 vnetlib%vmbit%.dll,VNL_RemoveAllNetworkDevices

net stop VMUSBArbService >nul 2>nul
sc delete VMUSBArbService >nul 2>nul
vnetlib%vmbit%.exe -- stop usb
vnetlib%vmbit%.exe -- uninstall usb
vnetlib%vmbit%.exe -- stop hcmon >nul 2>nul
vnetlib%vmbit%.exe -- uninstall hcmon >nul 2>nul

net stop vstor2-mntapi10-shared >nul 2>nul
sc delete vstor2-mntapi10-shared >nul 2>nul

vnetlib%vmbit%.exe -- stop vmkbd >nul 2>nul
vnetlib%vmbit%.exe -- uninstall vmkbd >nul 2>nul
net stop vmkbd >nul 2>nul
sc delete vmkbd >nul 2>nul

vnetlib%vmbit%.exe -- stop vmparport >nul 2>nul
vnetlib%vmbit%.exe -- uninstall vmparport >nul 2>nul

ver|find "5.">nul && (DrvInst.exe -uninstall "ROOT\VMWVMCIHOSTDEV" 0 >nul 2>nul)
ver|find "6.">nul && (devcon%vmbit%.exe remove "ROOT\VMWVMCIHOSTDEV" >nul 2>nul)

vnetlib%vmbit%.exe -- stop vsock >nul 2>nul
net stop vsock >nul 2>nul
sc delete vsock >nul 2>nul

vnetlib%vmbit%.exe -- stop vmx86 >nul 2>nul
vnetlib%vmbit%.exe -- uninstall vmx86 >nul 2>nul

vnetlib%vmbit%.exe -- uninstall vmci
echo.

echo 取消DLL文件的注册...
regsvr32 /u /s "%cd%\vmappcfg.dll"
regsvr32 /u /s "%cd%\vmappsdk.dll"
regsvr32 /u /s "%cd%\vmdbCOM.dll"
echo.

echo 删除注册表....
reg delete "HKEY_CURRENT_USER\SOFTWARE\ThinPrint" /f >nul 2>nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\ThinPrint" /f >nul 2>nul
reg delete "HKEY_CURRENT_USER\SOFTWARE\VMware, Inc." /f >nul 2>nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc." /f >nul 2>nul
reg delete "HKEY_CURRENT_USER\Software\Wow6432Node\VMware, Inc." /f >nul 2>nul
reg delete "HKEY_LOCAL_MACHINE\Software\Wow6432Node\VMware, Inc." /f >nul 2>nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32" /f /v "VIDC.VMnc" >nul 2>nul
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMware" /f >nul 2>nul
echo.

echo 删除文件...
rmdir /s /q "%AllUsersProfile%\Application Data\VMware" >nul 2>nul
rmdir /s /q "%AppData%\VMware" >nul 2>nul
rmdir /s /q "%CommonProgramFiles%\VMware" >nul 2>nul
IF "%PROCESSOR_ARCHITECTURE%" neq "x86" rmdir /s /q "%CommonProgramFiles(x86)%\VMware" >nul 2>nul
del /f /q "%WinDir%\system32\vmnc.dll" >nul 2>nul
del /f /q "%WinDir%\SysWOW64\vmnc.dll" >nul 2>nul
del /f /q "%WinDir%\system32\vnetinst.dll" >nul 2>nul
del /f /q "%WinDir%\system32\vnetlib*.dll" >nul 2>nul
del /f /q "%windir%\system32\drivers\vstor2-mntapi10-shared.sys" >nul 2>nul
del /f /q "%WinDir%\SysWOW64\drivers\vstor2-mntapi10-shared.sys" >nul 2>nul
del /f /q "%AllUsersProfile%\桌面\VMware.lnk" >nul 2>nul
del /f /q "%AllUsersProfile%\Desktop\VMware.lnk" >nul 2>nul
del /f /q "%USERPROFILE%\桌面\VMware.lnk" >nul 2>nul
del /f /q "%USERPROFILE%\Desktop\VMware.lnk" >nul 2>nul
del /f /q "%WinDir%\system32\drivers\vmnet*.sys" >nul 2>nul
del /f /q "%WinDir%\system32\drivers\vmparport.sys" >nul 2>nul
del /f /q "%WinDir%\system32\drivers\VMkbd.sys" >nul 2>nul
del /f /q "%WinDir%\system32\drivers\vmx86.sys" >nul 2>nul
del /f /q "%WinDir%\system32\drivers\vmusb.sys" >nul 2>nul
del /f /q "%WinDir%\system32\drivers\vmci.sys" >nul 2>nul
del /f /q "%WinDir%\system32\vmnetdhcp.exe" >nul 2>nul
del /f /q "%WinDir%\system32\vmnat.exe" >nul 2>nul
del /f /q "%WinDir%\system32\vmnetbridge.dll" >nul 2>nul
del /f /q "%WinDir%\SysWOW64\vmnetdhcp.exe" >nul 2>nul
del /f /q "%WinDir%\SysWOW64\vmnat.exe" >nul 2>nul
echo.

echo 删除 __vmware_user__ 账户和用户组 ...
net localgroup users __vmware_user__ /del >nul 2>nul
net localgroup __vmware__ /del >nul 2>nul
net user __vmware_user__ /del >nul 2>nul
echo.

echo 恢复配置文件...
ver|find "6.">nul && (set profilepath=%AllUsersProfile%)
ver|find "5.">nul && (set profilepath=%AllUsersProfile%\Application Data)
start /wait str.exe preferences.ini 0 0 /R /asc:"%cd%" /asc:"VMwareDir" /A >nul 2>nul
start /wait str.exe environments.xml 0 0 /R /asc:"%cd%" /asc:"VMwareDir" /A >nul 2>nul

start /wait str.exe "%profilepath%\VMware\hostd\config.xml" 0 0 /R /asc:"%cd%" /asc:"VMwareDir" /A >nul 2>nul
start /wait str.exe "%profilepath%\VMware\hostd\datastores.xml" 0 0 /R /asc:"%cd%" /asc:"VMwareDir" /A >nul 2>nul
start /wait str.exe "%profilepath%\VMware\hostd\stats\hostAgentStats.xml" 0 0 /R /asc:"%profilepath%\VMware" /asc:"hostdDir" /A >nul 2>nul
start /wait str.exe "%profilepath%\VMware\hostd\config.xml" 0 0 /R /asc:"%profilepath%\VMware" /asc:"hostdDir" /A >nul 2>nul

net stop "VMware NAT Service" >nul 2>nul&&sc delete "VMware NAT Service" >nul 2>nul
net stop VMnetDHCP >nul 2>nul&&sc delete VMnetDHCP >nul 2>nul
net stop VMnetAdapter >nul 2>nul&&sc delete VMnetAdapter >nul 2>nul
net stop vmusb >nul 2>nul&&sc delete vmusb >nul 2>nul
net stop VMnetBridge >nul 2>nul&&sc delete VMnetBridge >nul 2>nul
net stop vmci >nul 2>nul&&sc delete vmci >nul 2>nul
echo.
sc delete "vstor2-mntapi10-shared" >nul 2>nul
sc delete "VMparport" >nul 2>nul
sc delete VMUSBArbService >nul 2>nul
sc delete VMnetDHCP >nul 2>nul
sc delete "VMware NAT Service" >nul 2>nul
sc delete VMAuthdService >nul 2>nul
sc delete VMnetuserif >nul 2>nul
sc delete VMnetAdapter >nul 2>nul
sc delete vmkbd >nul 2>nul
sc delete vmx86 >nul 2>nul
echo.
pause>nul|echo 卸载完成,最好重新启动一下计算机,因为有些驱动可能需要重启后才能删除......
exit
分享到:
评论

相关推荐

    VMware Workstation 无法彻底卸载 提示\"The MSI failed.\" 解决方法

    本篇文章将针对“VMware Workstation无法彻底卸载,提示‘The MSI failed.’”这一问题进行深入探讨,并提供解决方案。 首先,我们要理解"The MSI failed."这个错误提示。MSI全称为Microsoft Installer,是Windows...

    虚拟机卸载VMware Workstation

    因此,彻底卸载VMware Workstation需要额外的步骤。 第一步,打开控制面板,选择“程序”或“程序和功能”,找到VMware Workstation并点击“卸载”。按照向导的指示完成卸载过程,确保在过程中没有出现错误或中断。...

    VMWare专用卸载工具

    当卸载VMware Workstation时,如果缺少这些文件,卸载程序可能无法正确执行,导致卸载失败。 针对“丢失mis文件”的问题,VMware提供了专用的卸载工具,该工具旨在帮助用户在常规卸载方式无效时,安全地清理与...

    VMware Workstation完全卸载工具(VMware Install Cleaner) 官方版

    总之,"VMware Workstation完全卸载工具(VMware Install Cleaner)"是解决VMware卸载问题的有效解决方案,通过其专业的清理功能,可以确保系统摆脱VMware的残留影响,为新的安装提供一个干净的环境。对于经常需要安装...

    VMware Workstation完全卸载工具

    总的来说,VMware Workstation完全卸载工具是一套全面的解决方案,帮助用户解决因残留文件和注册表项导致的安装问题。正确使用这些工具,能够保护系统免受不必要的冲突,确保新版本的VMware Workstation能够顺利安装...

    彻底删除vmware workstation非常有用

    当安装的vmware workstation不正常卸载后,会无法安装vmware运行这个文件会轻松的卸载机子上一切关于vmware的信息,达到重新安装,试过,很灵。。。

    vmware workstation 7.1.x卸载残留清除工具

    卸载后装7.1.x版本还提示原来的vmware workstation没卸载干净.网上有相关技术文章手动操作清除的.不过一条条清太累了.vmware官方网站提供这个工具,但是不是官方开发的.是同好开发的.官方网站搜索关键字VMware ...

    VMware-workstation-full-12.5.7.20721

    VMware Workstation是一款强大的虚拟机软件,由VMware公司开发,允许用户在单个计算机上运行多个操作系统。在本案例中,我们讨论的是VMware Workstation的版本12.5.7,具体构建号为20721的安装程序,以`.exe`格式...

    VMware-workstation-full-12.5.7.20721.exe注册码

    根据所提供的文件名“VMware-workstation-full-12.5.7.20721.exe”,我们可以得知这是VMware Workstation的一个具体版本:12.5.7。此版本可能包含了之前版本中的所有功能,并在此基础上进行了一些改进和修复,以提高...

    VMware-workstation-full-15.5.6-16341506.msi

    VMware-workstation-full-15.5.6-16341506.msi支持新版windows10系统安装,解决了官网无法安装的问题

    vmware workstation卸载工具.7z

    然而,在某些情况下,VMware Workstation的卸载可能并不彻底,可能会留下无效的驱动程序或者注册表项,导致后续重新安装时出现问题。针对这种情况,"vmware workstation卸载工具.7z"压缩包提供了解决方案。 "虚拟机...

    VMware Workstation 无法安装之终极解决方案

    ### VMware Workstation 无法安装之终极解决方案:深入解析与应对策略 #### 一、问题概述与常见错误 在安装VMware Workstation时,用户可能会遇到各种各样的问题,其中一个典型的错误提示是:“Error 1316. A ...

    如何完全卸载VMwareWorkstation虚拟机.pdf

    很多人尝试使用 360 安全卫士 等工具卸载 VMware Workstation,但却无法彻底卸载。下面将介绍详细的卸载步骤和方法。 一、使用 Total Uninstall 6 卸载 VMware Workstation 1. 下载并安装 Total Uninstall 6 软件...

    VMware-workstation_full_12.1.1.6932.rar

    VMware-workstation_full_12.1.1.6932.rar

    VMware卸载清理工具.zip

    总结,"VMware卸载清理工具"是针对VMware软件卸载的专业辅助工具,能够全面、彻底地从系统中移除VMware的各个组件,避免手动操作带来的风险和遗漏,确保系统的清洁和后续安装的顺利进行。对于需要频繁安装、卸载...

    最新版windows VMware-workstation-full-15.5.6-16341506.exe

    《深入解析VMware Workstation 15.5.6-16341506在Windows环境下的应用》 VMware Workstation是一款强大的虚拟化软件,它允许用户在单个计算机上运行多个独立的操作系统实例,为开发、测试、学习和演示软件提供了一...

    VMware-workstation-full-12.5.7.20721.exe

    VMware-workstation-full-12.5.7.20721.exe,VMware虚拟机

    Mware workstation不完全卸载后无法安装的解决方法

    ### VMware Workstation 不完全卸载后无法安装的解决方法 #### 背景与问题描述 在使用 VMware Workstation 的过程中,有时会遇到因各种原因导致的软件异常或错误,例如虚拟机无法正常启动等问题。当尝试通过卸载并...

    VMware Workstation 6.0 简体中文精简版.rar

    VMware Workstation是一款由VMware公司开发的强大的虚拟机软件,它允许用户在单个物理计算机上同时运行多个操作系统,为开发、测试和部署软件提供了极大的便利。VMware Workstation 6.0是该系列的一个重要版本,它在...

Global site tag (gtag.js) - Google Analytics