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

Aperta
#6,667 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
26.6k
Fork
1.8k
Merge medio
3g 10h
PR unite (30g)
41

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/winget-cli

Tutte le issue di microsoft/winget-cli

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.