Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 軟體綜合

Windows Installer 常見故障三大類與解決方案:服務損壞、版本過舊、檔案遺失

編輯:軟體綜合

安裝軟體時跳出「Windows Installer 服務無法存取」、「安裝錯誤」、「檔案正在使用請重開機」?這都是 Windows Installer (MSI) 引擎故障的典型表現。本文歸納三大故障類型與對應修復方案,涵蓋 98/2000/XP 系統。

故障類型一:Windows Installer 版本過舊 (最常見)

現象: 安裝 ACDSee 5.0、Daemon Tools 等採用新版 MSI 技術的軟體時提示「安裝錯誤」。

原因: Win98/Win2000 早期版內建 MSI 版本太舊 (1.x),不支援新版安裝包。

解決: 下載安裝 Windows Installer 2.0 或更新版本 (Microsoft 官網免費提供),重開機後即可正常安裝。

故障類型二:Windows Installer 服務損壞/無法存取

現象: 安裝/修復 Office 時出現:

  • 「The Windows Installer Service Could Not Be Accessed」
  • 「本程式已更新,某個檔案正在使用,請重新啟動電腦再試!」

原因: MSI 核心檔案 (msi.dll, msiexec.exe, msihnd.dll) 損壞、遺失或登錄錯誤。

方法 1:重新註冊服務 (適用 Win2000/XP)

  1. 開啟 regedit,檢查 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSIServer
  2. 確認 ImagePath 字串值包含正確路徑:
    C:\Windows\System32\msiexec.exe /V
    # (若無此值請新增)
    
  3. 重開機進入安全模式 (開機按 F8)
  4. 「執行」輸入 msiexec /regserver 按 Enter
  5. 重開機正常模式測試

方法 2:手動替換核心檔案 (徹底修復)

  1. 進入命令提示字元 (Win2K/XP) 或純 DOS (Win98)
  2. 移除系統/隱藏/唯讀屬性:
    # XP/2K:
    attrib -r -s -h C:\Windows\System32\dllcache
    # 98:
    attrib -r -s -h C:\Windows\System
    
  3. 備份並替換三個核心檔:
    ren msi.dll msi.old
    ren msiexec.exe msiexec.old
    ren msihnd.dll msihnd.old
    
  4. 輸入 exit 重開機,Windows 會從 dllcache 或安裝源自動還原最新版本
  5. 或手動下載最新 Windows Installer 重新安裝

故障類型三:安裝過程檔案被佔用 (需重開機)

現象: 提示「某個檔案正在使用」,實際上常為殘留鎖定或預覽機制。

解決:

  • 重開機 (最簡單有效)
  • 安全模式安裝 (避開第三方鎖定)
  • 關閉防毒即時掃描、媒體播放器、縮圖預覽 (參考「無法刪除檔案」文章)

快速診斷流程圖

安裝報錯
   │
   ├─ 新軟體/新版 MSI → 更新 Windows Installer 2.0+ → 解決
   │
   ├─ Office/系統元件報「服務無法存取」
   │    │
   │    ├─ msiexec /regserver (安全模式) → 解決
   │    │
   │    └─ 替換 msi.dll/msiexec.exe/msihnd.dll → 解決
   │
   └─ 「檔案正在使用」 → 重開機/安全模式/關閉鎖定程式 → 解決
💡 維護建議: 系統安裝後首要動作:Windows Update 安裝最新 Windows Installer (3.1/4.5/5.0 視 OS 版本)。可預防 90% 以上 MSI 相容性問題。XP SP3 已內建 3.1,Win7+ 內建 5.0。
Copyright © Windows教程網 All Rights Reserved