Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选

首页 / 操作系统 / Linux / 安装VMWare过程中蓝屏了(解决方案)

今天安装VMWare过程中蓝屏了,重启再次安装发现:The MSI "C:DOCUME~1LOCALS~1Tempvmware_1295537967vmware workstation.msi" failed不管换多少个版本,都是上面的结果,原因是vmware在系统中有残留文件以及注册表信息。测试了网上一些删除操作,发现都不行。但我发现下面的方法行:退出所有的安全软件(安装存在冲突)将以下代码保存为文本文件,改后缀为.cmd然后以管理员身份执行,命令会自动清理以前残留的VMware信息。卸载VMware.cmdcls
@echo off
CLS
color 0a
Title 卸载 VMware
set vmbit=
IF "%PROCESSOR_ARCHITECTURE%" neq "x86" set vmbit=64echo 你确定要卸载 VMware 8 吗?
echo 按任意键继续卸载 VMware 8 !!!&pause>nulecho 正在删除服务和设备,可能需要几分钟,请稍后...
echo 如果三分钟后还没动静,请在卸载批处理上敲一下回车键后继续等待...msiexec.exe /x vmwarevmcisockets.msi /qn /norestart
msiexec.exe /x vmwarevmcisockets64.msi /qn /norestart
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>nulvnetlib%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_RemoveAllNetworkDevicesnet 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>nulnet stop vstor2-mntapi10-shared >nul 2>nul
sc delete vstor2-mntapi10-shared >nul 2>nulvnetlib%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>nulvnetlib%vmbit%.exe -- stop vmparport >nul 2>nul
vnetlib%vmbit%.exe -- uninstall vmparport >nul 2>nulvnetlib%vmbit%.exe -- stop vmx86 >nul 2>nul
vnetlib%vmbit%.exe -- uninstall vmx86 >nul 2>nulvnetlib.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_LOCAL_MACHINESOFTWAREVMware, Inc." /f >nul 2>nul
reg delete "HKEY_CURRENT_USERSOFTWAREVMware, Inc." /f >nul 2>nul
reg delete "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeVMware, Inc." /f >nul 2>nul
reg delete "HKEY_CURRENT_USERSOFTWAREWow6432NodeVMware, Inc." /f >nul 2>nul
reg delete "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDrivers32" /f /v "VIDC.VMnc" >nul 2>nul
reg delete "HKLMSOFTWAREWow6432NodeMicrosoftWindows NTCurrentVersionDrivers32" /f /v "VIDC.VMnc" >nul 2>nul
reg delete "HKLMSYSTEMCurrentControlSetServicesVMware" /f >nul 2>nul
echo.echo 删除文件...
rmdir /s /q "%AllUsersProfile%Application DataVMware" >nul 2>nul
rmdir /s /q "%AppData%VMware" >nul 2>nul
rmdir /s /q "%CommonProgramFiles%VMware" >nul 2>nul
rmdir /s /q "%WinDir%infVMware" >nul 2>nul
IF "%PROCESSOR_ARCHITECTURE%" neq "x86" rmdir /s /q "%CommonProgramFiles(x86)%VMware" >nul 2>nul
del /f /q "%WinDir%system32vmnc.dll" >nul 2>nul
del /f /q "%WinDir%SysWOW64vmnc.dll" >nul 2>nul
del /f /q "%WinDir%system32vnetinst.dll" >nul 2>nul
del /f /q "%WinDir%system32vnetlib*.dll" >nul 2>nul
del /f /q "%windir%system32driversvstor2-mntapi10-shared.sys" >nul 2>nul
del /f /q "%WinDir%SysWOW64driversvstor2-mntapi10-shared.sys" >nul 2>nul
del /f /q "%AllUsersProfile%桌面VMware.lnk" >nul 2>nul
del /f /q "%AllUsersProfile%DesktopVMware.lnk" >nul 2>nul
del /f /q "%USERPROFILE%桌面VMware.lnk" >nul 2>nul
del /f /q "%USERPROFILE%DesktopVMware.lnk" >nul 2>nul
del /f /q "%WinDir%system32driversvmnet*.sys" >nul 2>nul
del /f /q "%WinDir%system32driversvmparport.sys" >nul 2>nul
del /f /q "%WinDir%system32driversVMkbd.sys" >nul 2>nul
del /f /q "%WinDir%system32driversvmx86.sys" >nul 2>nul
del /f /q "%WinDir%system32driversvmusb.sys" >nul 2>nul
del /f /q "%WinDir%system32driversvmci.sys" >nul 2>nul
del /f /q "%WinDir%system32vmnetdhcp.exe" >nul 2>nul
del /f /q "%WinDir%system32vmnat.exe" >nul 2>nul
del /f /q "%WinDir%system32vmnetbridge.dll" >nul 2>nul
del /f /q "%WinDir%SysWOW64vmnetdhcp.exe" >nul 2>nul
del /f /q "%WinDir%SysWOW64vmnat.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>nulstart /wait str.exe "%profilepath%VMwarehostdconfig.xml" 0 0 /R /asc:"%cd%" /asc:"VMwareDir" /A >nul 2>nul
start /wait str.exe "%profilepath%VMwarehostddatastores.xml" 0 0 /R /asc:"%cd%" /asc:"VMwareDir" /A >nul 2>nul
start /wait str.exe "%profilepath%VMwarehostdstatshostAgentStats.xml" 0 0 /R /asc:"%profilepath%VMware" /asc:"hostdDir" /A >nul 2>nul
start /wait str.exe "%profilepath%VMwarehostdconfig.xml" 0 0 /R /asc:"%profilepath%VMware" /asc:"hostdDir" /A >nul 2>nulnet 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 卸载完成,最好重新启动一下计算机,因为有些驱动可能需要重启后才能删除......
exitLinux cp scp命令使用VirtualBox下安装Openstack相关资讯      vmware安装 
  • CentOS 7 下安装卸载 VMware  (11/10/2014 14:35:04)
  • 用VMware 8安装Ubuntu 12.04详细过  (07/10/2012 13:39:44)
  • Ubuntu下安装VMware 8  (07/22/2012 08:46:45)
  • vmware安装出现的linux-headers问  (05/26/2007 08:19:51)
本文评论 查看全部评论 (0)
表情: 姓名: 字数