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

Win7 修改軟體預設安裝路徑:登錄檔一鍵導向 D 槽

編輯:Windows 7 系統介紹

C 槽空間緊張?修改登錄檔將預設安裝路徑從 C:\Program Files 改為 D:\Software(或任意路徑),新安裝軟體預設即會導向新位置,無需每次手動選擇。

操作步驟

  1. Win + R → regedit 開啟登錄編輯器。
  2. 定位至:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
  3. 右側找到 ProgramFilesDir(32 位元系統)與 ProgramFilesDir (x86)(64 位元系統,若存在)。
  4. 雙擊修改數值資料為新路徑,例如:
    D:\Software
  5. 確定,關閉登錄編輯器。後續安裝軟體預設路徑即為新位置。

注意事項

  • 僅影響新安裝軟體,已安裝程式不會自動移動。
  • 部分軟體安裝程式硬編碼路徑或忽略此登錄值,仍會強制安裝至 C 槽。
  • 64 位元系統建議同時修改 ProgramFilesDir 與 ProgramFilesDir (x86) 以相容 32/64 位元安裝程式。
  • 目標資料夾需預先建立且具備寫入權限。
  • 系統關鍵元件(Windows Update、驅動程式、Office 等)仍會安裝至系統指定路徑,不受此設定影響。

進階:移動現有程式

若需移動已安裝程式,建議使用 Steam Mover、Application Mover 或 符號連結:

mklink /J "C:\Program Files\TargetApp" "D:\Software\TargetApp"

此法可無縫重導向,程式與註冊表路徑均不變更。

Copyright © Windows教程網 All Rights Reserved