萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Windows XP 教學

Windows Installer 服務無法存取?三大修復方案:從卸載衝突軟體到註冊表重建

方法一:常規排查與修復

  1. 若安裝過 ACDSee 5.0 (含迷你中文版),先解除安裝;否則重裝 Windows Installer 或改裝 ACDSee 4.0。
  2. Win+R → cmd → sfc /scannow 掃描系統檔。
  3. services.msc → Windows Installer 設為「手動」→ 重新啟動服務。
  4. 工作管理員結束 ikernel.exe 進程後重試安裝。
  5. 暫時停用防毒軟體即時掃描。
  6. 刪除 C:\Program Files\Common Files\InstallShield\Engine\6\Intel 32 內所有檔案,重開機再試。

方法二:深度重建 Installer 服務

  1. 重新執行 instmsiw.exe (Windows Installer 2.0)。若提示「服務已安裝」直接結束,續執行下列步驟;否則重裝即可。
  2. 刪除登錄機碼:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer,再執行 instmsiw.exe。
  3. 終極招數:
    1. 儲存以下為 unmsiserver.reg 並雙擊匯入:
      Windows Registry Editor Version 5.00
      [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer]
      
    2. 儲存以下為 unmsi.inf,右鍵「安裝」 (會刪除 msi 相關 DLL,系統檔案保護可能提示插入光碟,選擇忽略):
      ;unmsi.inf
      [Version]
      signature = "$Windows NT$"
      Class = "Microsoft Windows Installer"
      ClassGUID = {F5776D81-AE53-4935-8E84-B0B283D8BCEF}
      Provider = "Microsoft Corporation"
      CatalogFile = msi.cat
      ComponentId = {2E742517-5D48-4DBD-BF93-48FDCF36E634}
      DriverVer=03-13-2001, 2.0.2460.1
      [SourceDisksNames]
      1 = "Microsoft Windows Installer Distribution Media"
      [SourceDisksFiles]
      msi.dll = 1
      msihnd.dll = 1
      msimsg.dll = 1
      msiexec.exe = 1
      msisip.dll = 1
      [DestinationDirs]
      Msi.SystemFiles = 11
      Msi.DllCacheFiles = 11,dllcache
      [DefaultInstall]
      DelFiles = Msi.SystemFiles,Msi.DllCacheFiles
      [Msi.DllCacheFiles]
      msi.dll; msihnd.dll; msimsg.dll; msiexec.exe; msisip.dll
      [Msi.SystemFiles]
      msi.dll; msihnd.dll; msimsg.dll; msiexec.exe; msisip.dll
      [Strings]
      Microsoft = "Microsoft Corporation"
      msi_media = "Microsoft Windows Installer Distribution Media"
      ExceptionClassDesc = "Microsoft Windows Installer"
      
    3. 重開機進入「帶命令提示字元的安全模式」 (F8) 執行:
      regsvr32 /u %windir%\msi.dll
      del %windir%\msi.dll
      
    4. 重開機正常模式執行 instmsiw.exe 重新安裝 Windows Installer。
  4. 以管理員身分登入,Win+R → cmd 依序執行:
    msiexec.exe /unregister
    msiexec /regserver
    
  5. 確保 SYSTEM 帳戶對 HKEY_CLASSES_ROOT 擁有「完全控制」權限 (登錄編輯器 → 編輯 → 權限 → 新增 SYSTEM → 允許完全控制)。
  6. 重開機完成修復。

方法三:簡易重新註冊法

  1. 命令提示字元 (管理員) 執行 msiexec /unregserver 停用服務。
  2. 下載 InstMsiW.exe,用 WinRAR 解壓縮。
  3. 右鍵 msi.inf → 「安裝」;右鍵 mspatcha.inf → 「安裝」。
  4. 執行 msiexec.exe /regserver 重新啟用服務。

原理說明

Windows Installer (MSI) 是微軟管理軟體安裝/設定的核心模組。上述三套方案由淺入深,涵蓋服務重置、登錄清理、核心 DLL 重新註冊,可解決絕大多數「無法存取 Windows Installer 服務」錯誤。

copyright © 萬盛學電腦網 all rights reserved