VMware WorkStation安裝時提示The MSI failed


以前安裝過其他版本的VMware workstation卸載不完全造成的

先把所有VMware相關服務關閉,然后打開注冊表,搜索所有VMware相關鍵值,刪除掉,然后再安裝就可以了

前提是你機器上沒有需要用的其他VMware的軟件,不然就會導致其他VMware軟件報廢


刪除window服務命令
 
用sc.exe這個Windows命令 
 
開始——運行——cmd.exe,然后輸入sc -?可以查看使用參數 
 
sc delete "服務名" (如果服務名中間有空格,就需要前后加引號) 
 
例如:sc delete TestService    www.2cto.com

這個問題是我在安裝虛擬機到windows時出現的,網上找了找解決方法,千篇一律,無非於以下兩點:一是重裝系統;二是不要用這種虛擬機換個虛擬 機。還有更甚者一些牛頭不對馬尾的解決方法,什么關閉防火牆、運用綠色版、破解文件...我是沒有看懂。繼而我感覺這個問題沒有這么麻煩,也沒有必要動不 動就和系統過不去,大小問題都重裝系統。

      因為當我打開Vmware安裝軟件的時候它提示我需要卸載以前的版本,但是我以前的已經卸載。按照安裝提示走,去卸載就會出現

 

     我想解決這個問題就是將以前卸載的殘留文件刪除干凈,就可以了。

所以我就按照我這個思路去清理下系統中殘留的VmwareWorkstaton文件。

一、打開 計算機->管理->服務,果然發現VMware的服務還存在

在服務管理中停止以下服務(VM*)

 

VMware Authentication Service

VMware Registration Service

VMware DHCP Service

VMware NAT Service

 

二、卸載VMware安裝的設備 計算機->管理 -> 設備管理器 -> 查看 -> 顯示隱藏的設備 -> 非即插即用驅動程序 刪除以下程序

VMware hcmon
VMware Network Application Interface
VMparport vmx86
VMware Bridge Protocol

 

三、 清除注冊表 運行->regedit->編輯->查找->"vmware" 結果全部刪除!清除C盤C:/Program Files/VMware|C:/Windows/System32&&C:/Windows/System32/drivers中和 VM有關的,實在難以區分的查看其屬性

四、計算機->管理 -> 本地用戶組管理->刪除__vmware_user__用戶和__vmware__用戶組

五、重啟計算機

 

 

六、重新以管理員權限安裝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 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM