MemRelay-Operation: memory-save:install-location-rule-20261206 MemRelay-Resource: f8f94f9f-0146-4dc7-ba24-9991abc350ab
1.5 KiB
1.5 KiB
title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
| title | type | permalink | stable_id | scope | memory_type | project_id | usage_profile_id | status | revision | request_id | created_at | updated_at | tags | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| winget 与 Scoop 优先装到 D 盘 | rule | main/global/winget-与-scoop-优先装到-d-盘 | f8f94f9f-0146-4dc7-ba24-9991abc350ab | global | rule | null | 0c9feb46-d06e-43cd-9ef0-c5813c84a998 | active | 1 | install-location-rule-20261206 | 2026-12-05T19:40:24.086538+00:00 | 2026-12-05T19:40:24.086538+00:00 |
|
在这台 Windows 上,用 winget 或 Scoop 安装工具时按下面的顺序选目录,32 位和 64 位都一样:
- 优先安装到 D:\Program Files\<软件名>。不要装到 C:\Program Files、C:\Program Files (x86) 或用户目录,避免占用系统盘。
- 安装程序不能接受路径里的空格时,改到 D:\SoftwareSpace\<软件名>。该目录已经存在。
- 只有安装程序完全不能指定目录时,才使用它自己的默认目录。
- Qt 例外:安装器不允许路径含空格,且安装根目录必须是空目录。在线安装器放 D:\Qt\installer,Qt 本体和 Maintenance Tool 放 D:\Qt\App。卸载 Qt 会删除 D:\Qt\App,不会删除 D:\Qt\installer。不要把 Qt 放进 D:\SoftwareSpace 或 D:\Program Files。
Scoop 的 SCOOP 目录、winget 的 --location,以及 winget 可移植包的用户/全机根目录,都按上面放到 D 盘。可移植包不要留在默认的 C:\Program Files\WinGet\Packages 或 %LOCALAPPDATA%\Microsoft\WinGet\Packages。