[New Feature]: Had a thought regarding portable applications and the `--System` Scope

未关闭
#6,667 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp
领域
cli

调研方向

Start by reading the portable application installation and machine scope code in the WinGet CLI; the issue does not name specific files or tests. Determine how the install paths and directory permissions are handled, then assess whether junctions to the proposed ProgramData locations fit the existing behavior. Done means machine scope portable installs use the requested paths and resolve the write permission problem.

由索引模型根据 Issue 内容生成。

描述

Issue-Feature
Description of the new feature/enhancement

When installing portable applications with machine scope that go in C:\Program Files\WinGet\ or C:\Program Files (x86)\WinGet\, instead of creating physical directories there:

Create 2 junction directories
From physical folder C:\ProgramData\WinGet\x64\
to Junction: C:\Program Files\WinGet\
and
From physical folder: C:\ProgramData\WinGet\x86\
to Junction: C:\Program Files (x86)\WinGet\

Proposed technical implementation details (optional)

Would solve permission issues since those folders have tighter permissions, an example of one that breaks: SDIO, it needs to write to its install folder. \Program files and \Program Files (x86) don't seem to like to let portable applications write to their install folders due to the restrictive nature of those parent directories.

At the moment I'm doing this myself using a post install script integrated into my custom ISO (for personal use). But I feel like this is a good enough work around for Winget to handle machine scope portable applications going forward.

主要语言
C++
星标
26.6k
派生
1.8k
平均合并
3 天 10 小时
30 天内合并 PR
41

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/winget-cli 的其他 Issue

查看 microsoft/winget-cli 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。