Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

軟體安裝無限重開機循環?手動清理登錄殘留鍵值徹底解決

編輯:Windows XP 系統介紹

安裝軟體時提示「先前已安裝過,請重新開機後再安裝」,重開機後問題依舊。主因是舊版卸載時未清除登錄相關鍵值,安裝程式偵測到殘留資訊而誤判需重開機。

解決步驟:手動搜尋刪除登錄殘留值

  1. 執行 regedit 開啟登錄編輯器。
  2. 選單「編輯」→「尋找」(或 Ctrl+F),勾選「鍵、值、資料」三項,輸入軟體名稱關鍵字搜尋。
  3. 找到相關項目直接刪除,按 F3 繼續尋找下一個,直到掃描完整個登錄庫。
  4. 重新開機,軟體即可順利安裝。

常見安裝封裝格式的特定錯誤與對策

1. InstallShield (6.x) 常見錯誤:不支援介面、RPC 錯誤、Ikernel 錯誤

  • 工作管理員結束 Ikernel.exe 進程後再裝。
  • 刪除 C:\Program Files\Common Files\InstallShield\Engine 及 InstallShield 目錄後再裝。
  • 檢查登錄權限:HKLM\SOFTWARE\Classes\CLSID、Interface、TypeLib 需有管理員讀寫權限(用 Regedt32 調整)。
  • 仍無法解決,至 InstallShield 官網搜尋錯誤代碼(如 Error -1608)。

2. Wise Install System

同理至 Wise 官網,關鍵字搜尋,文章類型選「Problems」,勾選作業系統與產品「Wise Installation System」。

3. Inno Setup

腳本簡單,官網資料較少,遇問題需自行分析腳本或尋求論壇協助。

4. MSI 格式(Windows Installer 服務相關)

  • 若 Windows Installer 服務運行中但安裝失誤:執行 msiexec /unregserver 停用 → msiexec /regserver 重新註冊。
  • 若服務已停用且無法啟動(提示「指定服務已標記刪除」):
    ① 刪除登錄 HKLM\SYSTEM\CurrentControlSet\Services\MSIServer → 執行 instmsiw.exe。
    ② 右鍵 instmsiw.exe → 「安裝」刪除部分 MSI DLL。
    ③ 進入「帶命令提示字元的安全模式」執行:
    regsvr32 /u %windir%\msi.dll
    del %windir%\msi.dll
    ④ 重開機 → 執行 instmsiw.exe 安裝 Windows Installer 2.0。
  • 單一 MSI 程式無法安裝:使用「Windows Installer CleanUp Utility」清除快取,或刪除 Windows\Installer 隱藏目錄中對應的 .msi 檔後重裝。

依錯誤類型對症下藥,多數安裝疑難雜症皆可化解。

Copyright © Windows教程網 All Rights Reserved