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

解決 Windows XP 無法安裝字型的終極方案:重建 desktop.ini

編輯:XP 系統應用技巧

將字型檔(.ttf/.otf)複製到 C:\Windows\Fonts 卻不出現「安裝新字型」提示、字型無法使用,甚至「檔案」選單裡沒有安裝選項?這是因為 Fonts 資料夾遺失了關鍵的 desktop.ini 系統檔。本文教您 1 分鐘修復。

故障成因

C:\Windows\Fonts 是一個「系統特殊資料夾」,依賴 desktop.ini 定義其 Shell 命名空間行為(如顯示「安裝新字型」選單、啟用拖放安裝)。許多「系統優化」工具或使用者手動刪除「所有 desktop.ini」時,會誤刪此檔,導致字型資料夾退化為普通資料夾。

修復步驟(親測有效)

  1. 開啟「檔案總管」,在網址列輸入 C:\Windows\Fonts\desktop.ini 按 Enter。
    若檔案存在,問題非此原因;若顯示「找不到檔案」,繼續下列步驟。
  2. 在 C:\Windows\Fonts 空白處右鍵 →「新增」→「文字文件」,命名為 desktop.ini。
  3. 用記事本開啟,貼上以下內容:
[.ShellClassInfo]
UICLSID={BD84B380-8CA2-1069-AB1D-08000948F534}
  1. 儲存並關閉記事本。
  2. 右鍵 desktop.ini →「內容」→ 勾選「唯讀」與「隱藏」→「確定」。
  3. 按 F5 重新整理資料夾,或重新開啟 Fonts 資料夾,即可恢復「安裝新字型」功能。

進階驗證

  • 將任一 .ttf 檔拖入 Fonts 資料夾,應出現「正在安裝字型...」進度條。
  • 「檔案」選單應出現「安裝新字型...」選項。
  • 控制台 →「字型」應能正常顯示所有已安裝字型。
💡 避免再次誤刪:使用清理工具(如 CCleaner、Wise Care 365)時,請在「進階設定」中排除 C:\Windows\Fonts\desktop.ini,或取消勾選「清理 desktop.ini」選項。

補充:Windows 7/8/10/11 同樣適用

路徑為 C:\Windows\Fonts\desktop.ini,CLSID 相同。若問題持續,嘗試以系統管理員身分執行命令提示字元,輸入:

sfc /scannow

修復可能損毀的系統檔案。

Copyright © Windows教程網 All Rights Reserved