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

修改 Windows 7 軟體預設安裝路徑:透過登機檔將 Program Files 導向 D 槽

編輯:Windows 7 系統介紹

需求場景

習慣將系統裝在 C 槽,軟體安裝在 D/E 槽,但每次安裝都要手動更改路徑很麻煩。

登機檔修改法(適用於 Windows 7 / Vista / XP)

  1. 按 Win + R 輸入 regedit 開啟登機檔編輯器。
  2. 瀏覽至:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
  3. 在右側找到 ProgramFilesDir(32 位元系統)或 ProgramFilesDir (x86)(64 位元系統)。
  4. 雙擊修改數值資料為自訂路徑,例如:D:\Apps 或 E:\Program Files。
  5. 確定儲存,關閉登機檔編輯器,重新啟動電腦生效。

注意事項

  • 修改後新安裝的軟體預設會導向新路徑,已安裝軟體不受影響。
  • 部分舊版安裝程式可能寫死路徑,仍會安裝至 C 槽。
  • 建議新路徑使用簡單無空格的英文路徑,減少相容性問題。

替代方案

若不想動登機檔,可使用第三方工具(如「魔方」、「Windows 7 優化大師」)提供的「系統安裝路徑遷移」功能,圖形介面操作更直觀。

Copyright © Windows教程網 All Rights Reserved