How to update WinGet using the system scope? #4512
Unanswered
agiacomolli
asked this question in
Q&A
Replies: 2 comments
-
WinGet is distributed via the "App Installer". It's an MSIX packaged application, so the notion of "per user" or "per machine" is a bit different. The default mechanism for MSIX packages is that they can be registered for any user. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try this: Invoke-WebRequest 'https://cdn.winget.microsoft.com/cache/source.msix' -OutFile c:\Temp\source.msix |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using WinGet from a Windows service, and all the WinGet commands run as the system scope, but I am unable to do a self-update:
On the other hand, it works without the machine scope:
Adding more context, the service runs as the SYSTEM user and, at the very beginning, it installs the WinGet dependencies and the latest release from GitHub. I can install and update other packages, but it doesn’t work for WinGet. As a workaround, I need to check if there is a new version on GitHub and reinstall it if it doesn’t match the local one.
Is there a way to use the
winget
command to do a self-update using the machine scope?Beta Was this translation helpful? Give feedback.
All reactions