-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Package Issue]: Python.Python override causes installer to ignore scope #153928
Comments
The scope is controlled by the winget-pkgs/manifests/p/Python/Python/3/11/3.11.9/Python.Python.3.11.installer.yaml Lines 36 to 42 in 713c274
It is recommended to use the |
Also, am I understanding correctly that simply using the |
Sorry, I thought you were looking for a way to install it silently. Take the x86 installer as an example. The winget-pkgs/manifests/p/Python/Python/3/11/3.11.9/Python.Python.3.11.installer.yaml Lines 22 to 49 in 713c274
If one would like to install it in machine scope by specifying --scope machine , WinGet will choose the second one and apply the installer switches described in this entry, including the one InstallAllUsers=1 which asks the installer to install machine-wide. And if the --override WinGet switch is used, all these installer switches will be discarded.
|
No I should be sorry, I wasn't clear in explaining my intent in the initial example. Thanks very much for the explanation, this makes much more sense now. Is there a technical reason winget discards |
It not only discards the The So the final command line would be like
|
Actually, it doesn't!
|
@github-account1111 - try using |
Hello @github-account1111, This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any recent activity. It will be closed if no further activity occurs within 3 days of this comment. Template: msftbot/noRecentActivity |
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
Using overrides makes it impossible to install Python system-wide.
Steps to reproduce
Actual behavior
Python is installed in %LOCALAPPDATA%\Programs.
Expected behavior
Python is installed in %PROGRAMFILES% .
Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: