開機或啟動程式時彈出 「找不到 comctl32.dll」 或 「comctl32.dll 遺失」,代表 Windows 通用控制元件庫遺失或損壞。此檔案為 Microsoft Windows 核心系統檔,負責提供工具列、狀態列、進度條、樹狀檢視等通用 UI 控制項。缺失會導致程式無法啟動、介面異常、甚至系統不穩。以下提供標準修復流程。
# 1. 修復元件存放區 (Win7/8/10/11)
Dism /Online /Cleanup-Image /RestoreHealth
# 2. 掃描並修復系統檔案
sfc /scannow
comctl32.dll。E:。# 解壓 install.wim 中的檔案 (以 index 1 為例,請用 `dism /get-wiminfo /wimfile:E:\sources\install.wim` 確認正確索引)
dism /mount-wim /wimfile:E:\sources\install.wim /index:1 /mountdir:C:\mount /readonly
# 複製 comctl32.dll 到系統目錄 (64位系統同時有 System32 與 SysWOW64)
copy C:\mount\Windows\System32\comctl32.dll C:\Windows\System32\
copy C:\mount\Windows\SysWOW64\comctl32.dll C:\Windows\SysWOW64\ # 64位系統需補此步
# 卸載映像
dism /unmount-wim /mountdir:C:\mount /discard
C:\Windows\System32\comctl32.dll (64位) / C:\Windows\SysWOW64\comctl32.dll (32位 on 64位)。# 64位系統註冊 64位 DLL
regsvr32 C:\Windows\System32\comctl32.dll
# 64位系統註冊 32位 DLL (WoW64)
regsvr32 C:\Windows\SysWOW64\comctl32.dll
setup.exe。comctl32.dll 必定正確。歷史上確有病毒 (如 W32/Sality、Virut) 感染 comctl32.dll 導致檔案損壞/被隔離刪除。修復檔案後,務必執行全盤深度掃描:
| Windows 版本 | 64位系統 64位 DLL | 64位系統 32位 DLL (WoW64) | 32位系統 |
|---|---|---|---|
| Windows NT/2000 | — | — | C:\WINNT\System32\ |
| Windows XP (32位) | — | — | C:\Windows\System32\ |
| Windows XP x64 / Vista / 7 / 8 / 10 / 11 (64位) | C:\Windows\System32\ | C:\Windows\SysWOW64\ | — |
comctl32.dll 放在自身目錄 (Side-by-Side 組件),需更新該應用程式或重裝。遵循「系統工具優先、安裝媒體次之、絕不信任單一 DLL 下載」原則,即可安全徹底解決 comctl32.dll 遺失問題。