Administrator Protection: machine-scope installs are not matched across the user and the elevated account
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 49/100
Rechercherichtung
Start by tracing how winget list and winget upgrade match installed packages to catalog entries across the normal and elevated account profiles; the issue names no source files or tests. Compare the matching behavior for machine-wide installers with the unaffected portable package. Done means machine-wide packages are matched consistently from both accounts and can be upgraded from either.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Relevant area(s)
WinGet CLI
Relevant command(s)
winget list, winget upgrade
Brief description of your issue
With Administrator Protection on, an elevated winget runs as the separate account ADMIN_, with its own profile and so its own tracking catalog. A machine-wide package installed from one account is matched to its winget package only in that account. The other account lists it as an unmatched ARP entry, and its winget upgrade never offers the update. My scheduled upgrade runs elevated, so Ruby 3.4 stayed on an old version for weeks.
Steps to reproduce
- Turn on Administrator Protection (TypeOfAdminApprovalMode = 2).
- Install a machine-wide package from a normal terminal, for example
winget install --id RubyInstallerTeam.Ruby.3.4(the installer elevates itself). - Run
winget listin a normal terminal and in an elevated terminal, and compare. - When a newer version is published, run
winget upgradein both.
Expected behavior
A machine-wide package is matched the same way from both accounts, so either one can upgrade it.
Actual behavior
Normal terminal:
Ruby 3.4 RubyInstallerTeam.Ruby.3.4 3.4.12-1-arm winget
Windows Software Development Kit - ... Microsoft.WindowsSDK.10.0.26100 > 10.0.26100.7705 winget
Elevated terminal:
Ruby 3.4 ARP\Machine\X86\RubyInstaller-3.4-aarch64-mingw-ucrt_is1 3.4.12-1-arm
Windows Software Development Kit - ... ARP\Machine\X86\{45e335f3-c807-43b8-9ed1-43666cfcf939} 10.1.26100.9457
Before I updated it by hand, the normal winget upgrade listed Ruby 3.4.11-1 -> 3.4.12-1, while the elevated one reported "No installed package found" for it. A portable package is not affected: zoxide installed from the elevated account showed up as winget-matched in the normal account too.
Environment
Windows Package Manager v1.29.380
Windows: Windows.Desktop v10.0.26300.9974
System Architecture: Arm64
Package: Microsoft.DesktopAppInstaller v1.29.380.0
Administrator Protection: on (TypeOfAdminApprovalMode = 2)
- Vorherrschende Sprache
- C++
- Sterne
- 26.6k
- Forks
- 1.8k
- Ø Merge
- 3 T. 10 Std.
- Gemergte PRs (30 T.)
- 41
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/winget-cli
-
Issue-Docs Needs-Triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
microsoft/winget-cli#6692 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Issue-Docs Possible-Duplicate
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
microsoft/winget-cli#6493 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Issue-Feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/winget-cli#6427 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Issue-Docs msstore
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
microsoft/winget-cli#6331 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Command-Source Issue-Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/winget-cli#6148 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in microsoft/winget-cli
Ähnliche Issues
-
feat
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
stratum-mining/sv2-tp#167 ·
Maintainer antworten meist innerhalb von 1 Tag
-
better error message bug low priority semantics strings
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Sign up button opens the Sign in page instead of the Sign up page for Enterprise edition serversOffenauth bug ui/ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
MerginMaps/mobile#4795 ·
Maintainer antworten meist innerhalb von 2 Tagen