日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

[技術(shù)]關(guān)于重復(fù)安裝VMware虛擬機提示未完全卸載導(dǎo)致安裝中斷問題之終極解決方案

 昵稱3497697 2011-01-21

卸載后重裝到一半的時候提示:

Error 1316.A network error occurred while attempting to read from the file C:\WINDOWS\Installer\VMware Workstation.msi


強制退出后他安裝的進度往后倒退!?。。?/span>

查詢了資料說在注冊表下找到HKEY_LOCAL_MACHINE-->Software->VMware,inc,把這個整個刪除,關(guān)閉注冊表后,重新運行VMware的安裝文件就好了。

試了后這個提示是沒了,但問題尚在:

Setup has detcted that vmware workstation isadready installed on this machine......

無奈,還是因為注冊表里的相關(guān)信息沒刪干凈。然而,網(wǎng)上所謂的虛擬機綠色卸載工具都掛了馬不敢用。悲催地只好做了個批處理文件,完美卸載!

藉以此文獻給郁悶中的哥們姐們,希望對大家有所幫助!

 

代碼如下:

cls
@echo off
CLS
color 0a
echo 取消DLL文件的注冊...
regsvr32 /u /s "%cd%/vmappcfg.dll"
regsvr32 /u /s "%cd%/vmappsdk.dll"
regsvr32 /u /s "%cd%/vmdbCOM.dll"
regsvr32 /u /s "%cd%/vmhwcfg.dll"
regsvr32 /u /s "%cd%\V2V\IntraProcessLogging.dll"
regsvr32 /u /s "%cd%\V2V\reconfig.dll"
regsvr32 /u /s "%cd%\V2V\vhdcvtcom.dll"
regsvr32 /u /s "%cd%\V2V\vmc2vmx.dll"
regsvr32 /u /s "%cd%\V2V\vpcCvt.dll"
echo 正在刪除虛擬網(wǎng)卡,請稍后……
:delete VM Network
start /wait vnetlib -- remove adapter vmnet1
start /wait vnetlib -- remove adapter vmnet8
start /wait vnetlib -- remove dhcp vmnet1
start /wait vnetlib -- remove dhcp vmnet8
start /wait vnetlib -- remove nat vmnet8
:delservice
echo 正在刪除服務(wù)...
call :刪除服務(wù) vmnetbridge
call :刪除服務(wù) VMAuthdService
call :刪除服務(wù) vmx86
call :刪除服務(wù) VMnetAdapter
call :刪除服務(wù) "VMware NAT Service"
call :刪除服務(wù) "VMnetDHCP"
call :刪除服務(wù) VMnetuserif
call :刪除服務(wù) hcmon
call :刪除服務(wù) Vmparport
call :刪除服務(wù) vstor2-ws60
call :刪除服務(wù) vstor2
call :刪除服務(wù) vmkbd
"%cd%\VMMount\vmount2.exe" /Unregserver
netcfg -u vmware_bridge
echo.
:delfile
echo 刪除安裝的文件....
call :刪除文件 %systemroot%\inf\vmnet.sys
call :刪除文件 %systemroot%\inf\vmnetBridge.dll
call :刪除文件 %systemroot%\inf\netbridge.inf
call :刪除文件 %systemroot%\inf\vmnetBridge.sys
call :刪除文件 %systemroot%\inf\vmusb.cat
call :刪除文件 %systemroot%\inf\vmusb.inf
call :刪除文件 %systemroot%\inf\vmusb.sys
call :刪除文件 %systemroot%\inf\netadapter.inf
call :刪除文件 %systemroot%\inf\vmnetAdapter.sys
call :刪除文件 %systemroot%\inf\vnetinst.dll
call :刪除文件 %systemroot%\lastgood\system32\drivers\vmnetadapter.sys
call :刪除文件 %systemroot%\lastgood\system32\drivers\vmnet.sys
call :刪除文件 %systemroot%\lastgood\system32\drivers\vmnetbridge.sys
call :刪除文件 %systemroot%\system32\drivers\vmnetadapter.sys
call :刪除文件 %systemroot%\system32\drivers\vmnet.sys
call :刪除文件 %systemroot%\system32\drivers\vmnetbridge.sys
call :刪除文件 %systemroot%\system32\drivers\vmusb.sys
call :刪除文件 %systemroot%\system32\drivers\hcmon.sys
call :刪除文件 %systemroot%\system32\drivers\vmnetuserif.sys
call :刪除文件 %systemroot%\system32\drivers\vmparport.sys
call :刪除文件 %systemroot%\system32\drivers\vmx86.sys
call :刪除文件 %systemroot%\system32\NETCFG.EXE
call :刪除文件 %systemroot%\system32\choice.exe
call :刪除文件 %systemroot%\system32\devcon.exe

::以下兩句刪除用戶的配置文件(即虛擬機文件)默認(rèn)不刪除,需要刪除請將下面兩句前面的::去掉
::rd /s /q %APPDATA%\vmware
::rd /s /q "\Virtual Machines"
echo.
:delreg
echo 刪除注冊表....
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc." /f
:deluser
echo 刪除用戶__vmware_user__...
net user __vmware_user__ /delete
net localgroup __vmware__ /delete

pause>nul|echo 卸載完成......
goto :eof
:刪除文件
echo 正在刪除文件 %*
del /f /q "%*" >nul 2>nul
goto :eof
:刪除服務(wù)
echo 正在刪除服務(wù) %*
net stop %* 2>nul
sc delete %*
goto :eof



 

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多