microsoft / microsoft/winget-cli

Upgrading Python changes it from system-wide installation to user one

Open
#1,877 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

Upgrading Python changes it from system-wide installation (in C:\Program Files) to user-specific installation (in C:\Users\User\AppData\Local\Programs\Python).

Steps to reproduce
  1. Install Python, selecting system-wide install (for all users) in installer
  2. Upgrade Python via winget
Expected behavior

Upgrading Python should retain its system-wide installation status,

Actual behavior

Python is now installed for current user only,

Environment
Windows Package Manager v1.1.13405
(с) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

Windows: Windows.Desktop v10.0.19044.1466
Пакет: Microsoft.DesktopAppInstaller v1.16.13405.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the upgrade through winget on Windows using a system-wide Python installation, then trace the package upgrade path responsible for selecting the installation scope. Done means upgrading Python preserves the system-wide installation location and does not move it to the current user's directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.