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

Win7 捷徑圖示異常(白紙/錯誤圖示)修復:INF 安裝法一鍵重建檔案關聯

編輯:關於 Windows

Win7 常出現 .exe 或 .lnk 檔案關聯錯誤,導致所有捷徑、執行檔顯示白紙圖示或雙擊無反應。這通常是註冊表 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts 下對應鍵值損毀所致。透過安裝一個自訂 INF 檔可快速重置關聯。

修復步驟

  1. 新建文字文件,貼入以下內容:
[Version]
Signature="$Chicago$"
[DefaultInstall]
DelReg=DeleteMe
[DeleteMe]
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk"
  1. 另存為 fix.inf(副檔名必須為 .inf,編碼選 ANSI 或 UTF-8);
  2. 右鍵 fix.inf → 選擇 「安裝」;
  3. 若 360/QQ 電腦管家攔截,選擇「允許」或「信任」;
  4. 安裝完成後重開機,捷徑與 .exe 圖示應恢復正常。

原理說明

INF 安裝過程會執行 DelReg 區段,刪除使用者層級(HKCU)下 .exe 與 .lnk 的檔案關聯設定,強制系統回退至機器層級(HKLM)的預設關聯,從而修復圖示與雙擊執行功能。

若仍無效,進階修復

  • 以管理員身分執行 CMD,依序執行:
    assoc .exe=exefile
    assoc .lnk=lnkfile
    ftype exefile="%1" %*
  • 或下載微軟官方 「修復檔案關聯」 疑難解答工具執行。

INF 安裝法操作簡單、無需編輯註冊表,是修復 Win7 捷徑圖示異常的首選方案。

Copyright © Windows教程網 All Rights Reserved