之前安裝過其餘版本的VMware workstation卸載不徹底形成的
先把全部VMware相關服務關閉,而後打開註冊表,搜索全部VMware相關鍵值,刪除掉,而後再安裝就能夠了
前提是你機器上沒有須要用的其餘VMware的軟件,否則就會致使其餘VMware軟件報廢
刪除window服務命令
例如:sc delete TestService www.2cto.com
這個問題是我在安裝虛擬機到windows時出現的,網上找了找解決方法,千篇一概,無非於如下兩點:一是重裝系統;二是不要用這種虛擬機換個虛擬 機。還有更甚者一些牛頭不對馬尾的解決方法,什麼關閉防火牆、運用綠色版、破解文件...我是沒有看懂。繼而我感受這個問題沒有這麼麻煩,也沒有必要動不 動就和系統過不去,大小問題都重裝系統。
由於當我打開Vmware安裝軟件的時候它提示我須要卸載之前的版本,可是我之前的已經卸載。按照安裝提示走,去卸載就會出現windows
我想解決這個問題就是將之前卸載的殘留文件刪除乾淨,就能夠了。api
因此我就按照我這個思路去清理下系統中殘留的VmwareWorkstaton文件。app
在服務管理中中止如下服務(VM*)xml
VMware Authentication Service ci
VMware Registration Servicerem
VMware DHCP Servicecmd
VMware NAT Service虛擬機
2、卸載VMware安裝的設備 計算機->管理 -> 設備管理器 -> 查看 -> 顯示隱藏的設備 -> 非即插即用驅動程序 刪除如下程序it
VMware hcmon
VMware Network Application Interface
VMparport vmx86
VMware Bridge Protocolio
3、 清除註冊表 運行->regedit->編輯->查找->"vmware" 結果所有刪除!清除C盤C:/Program Files/VMware|C:/Windows/System32&&C:/Windows/System32/drivers中和 VM有關的,實在難以區分的查看其屬性
4、計算機->管理 -> 本地用戶組管理->刪除__vmware_user__用戶和__vmware__用戶組
5、重啓計算機
6、從新以管理員權限安裝VMware-workstation-full-7.1.3-324285
直接選擇修復模式!
新建 卸載.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