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

Win7 COM 元件註冊失敗怎麼辦?以管理員身分執行 regsvr32 解決

編輯:Windows 7 系統介紹

執行 regsvr32 xxx.ocx 提示註冊失敗,通常是權限不足。解法:以系統管理員身分開啟命令提示字元再執行。

步驟

  1. 「開始」→ 搜尋 cmd → 右鍵「以系統管理員身分執行」。
  2. 在提示字元輸入:
    regsvr32 "C:\完整\路徑\xxx.ocx"
    (路徑含空格時需加雙引號)
  3. 出現「DllRegisterServer 成功」即完成。

若仍失敗,檢查:
① 檔案是否存在、未損毀
② 是否為 32 位元元件在 64 位系統需用 %windir%\SysWOW64\regsvr32.exe
③ 相依 DLL 是否缺失 (用 Dependency Walker 檢查)

Copyright © Windows教程網 All Rights Reserved