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

Win8.1 安裝軟體報錯「called runscript when not marked in progress」?三步驟快速修復

編輯:關於 Windows

Windows 8.1 使用者在安裝或解除安裝軟體時,偶爾會遇到錯誤訊息:「called runscript when not marked in progress」,導致安裝程式中止。這是 Windows Installer 服務與檔案總管 交互異常導致的已知問題。本文提供經驗證有效的三步驟修復法,無需重裝系統。

錯誤現象

執行 .msi 或 .exe 安裝程式時,進度條走到一半突然彈出錯誤視窗,內容為 called runscript when not marked in progress,點擊確定後安裝回滾失敗。

核心成因

Windows Installer 服務 在處理安裝腳本時,需要與檔案總管 進程協作存取檔案系統。若當前的 explorer.exe 進程處於異常狀態 (如掛起、權限不足、模組衝突),Installer 服務無法正確標記腳本執行狀態,拋出此錯誤。

解決方案:重啟檔案總管進程 (經驗證最快有效)

  1. 按 Ctrl+Shift+Esc 開啟「工作管理員」。
  2. 切換至「詳細資料」索引標籤,找到 Windows 檔案總管。
  3. 右鍵點選 → 「結束工作」。畫面會暫時變黑、工作列消失,屬正常現象。
  4. 在工作管理員左上角「檔案」選單 → 「執行新工作」。
  5. 在「開啟」欄點擊「瀏覽」,定位至 C:\Windows\explorer.exe。
  6. 關鍵:勾選「以系統管理員身分執行此工作」 → 點擊「確定」。
  7. 檔案總管以管理員權限重新啟動,工作列、桌面圖示恢復正常。
  8. 立即重新執行剛才失敗的安裝/解除安裝程式,問題應已解決。

原理說明

以管理員身分重新啟動 explorer.exe,可重置其權限 Token 與 COM 物件狀態,確保後續 Windows Installer 服務呼叫檔案總管介面時能正確建立腳本執行標記。此法同樣適用於「安裝程式無回應」、「解除安裝卡住」等 Installer 相關問題。

若上述無效,進階排查步驟

  1. 重新註冊 Windows Installer: 管理員 CMD 執行 msiexec /unregister → msiexec /regserver → 重開機。
  2. 檢查 Windows Installer 服務: Win+R → services.msc → 確認「Windows Installer」啟動類型為「手動」,狀態為「執行中」。
  3. 系統檔案修復: 管理員 CMD 執行 sfc /scannow → DISM /Online /Cleanup-Image /RestoreHealth。
  4. 乾淨啟動環境下安裝: 參考本站「Win10 乾淨啟動教學」 (Win8.1 同適用),排除第三方軟體干擾。

預防建議

  • 安裝大型軟體 (Office、Visual Studio、Adobe 套裝) 前,建議先重新開機,確保系統環境乾淨。
  • 避免同時執行多個安裝/解除安裝程式。
  • 保持 Windows Update 最新狀態,微軟已在後續累積更新中修復多項 Installer 相關 Bug。

「called runscript when not marked in progress」雖然看似晦澀,但本質上只是檔案總管進程狀態異常。以管理員身分重啟 explorer.exe 即能在 1 分鐘內解決 95% 以上案例,免去重灌系統之苦。

Copyright © Windows教程網 All Rights Reserved