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
Upgrade Microsoft Store apps with winget upgrade
#2854
Comments
It's related to the version information from the Microsoft Store. Most packages are reporting version "Unknown" in the manifest. Some of the newer Win32 Apps in the store do have version information in |
I forgot to add. If you use WinGet to install a package from the "msstore" source, it is linked in Note, if the source also displays "unknown" it will not upgrade "unknown" to "unknown". You would have to use "--force" to force an upgrade. https://www.edtittel.com/blog/winget-upgrade-include-unknown-gets-ilustrated.html |
Oh, that's interesting! |
In the mean time, I am using a PowerShell script which I found somewhere in the internet: Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod It does the same thing as clicking in the Get updates button in the Microsoft Store. (sending because it may be useful for someone else) |
@felipecrs I assume that WMI/MDM thing does not work if you don't have Intune, right? FYI: It is possible to write some script code to programmatically (and synchronously) trigger Store updates: #1738 (reply in thread) |
Yes it works, I use it on my personal computers without Intune or anything special preinstalled. |
"Most packages are reporting version "Unknown" in the manifest" - this is happening even if the version is specified in the manifest, I hope this will be fixed soon |
@denelon I am aware that not even |
Is there any update? As a ms-store app developer I would love to detect and trigger updates with winget. |
I'm wondering about status of this as well. While I don't run update first thing on logon, every once in a while I do the update routine. I have a script that runs everything in the Terminal, but also opens Win Update and MSStore so I can click the buttons there just in case, as some stuff just refuses to pull updates sometimes. So for me it's running single ps1 script, click 2 buttons and wait. But I would still imagine a perfect world where single winget command updates everything (like apt would do for Debian/Ubuntu). And while I'm not much of a programmer, more sysadmin crossing to project manager, hearing "excuse" that package has no version number makes me start considering if I should pull my hair (little I have left) or just fire the guy that said it (with all due respect). Isn't Microsoft Store made by Microsoft? With all APIs and functionality? And isn't winget an MS project included in same OS as MSStore? So MS Store knows what to update when you click "Get Updates" (though that can also get confused). But different MS team can't query same API and get the list of what's new and update? So you don't have version numbers. So what. You have some other information, same one that "Get Updates" uses. So, again, sorry for harsh words, you people have been doing great work on winget, but ... Please don't say (publicly) that you can't fetch new updates for Store apps because version info is missing. Option 1) Option 2) I am looking at winget to eventually replace any GUI installing on Windows, for admins of all kinds to rejoice in easy app management (in 2025? 2027?). But please don't just throw excuses around for things that are managed by same parent company. (And I know MS is large corporation, and how it may be difficult to discuss stuff with other teams and departments, but come on... Try?) Thanks! |
Hi all! |
+1 for the feature of detecting version (instead of unkown) of msstore apps Is there a current roadmap? |
If this will be implemented, please do not update apps which set |
this does not execute for a user without local admin rights |
Has there been any update with this? |
I could not agree with this more. I'm a huge MS fan and enterprise user. WSL was a huge leap, then Windows terminal then winget. All of a sudden Windows 10/11 feel like knowledge worker and dev machines all in one. Except ..... package management is still an issue in 2024. Why is it so hard to get this to converge? |
Description of the new feature / enhancement
I have some strange habit of turning on my computer then running
winget upgrade --all
as the first thing to ensure I'm up-to-date.However, that isn't enough. I have to go to Windows Update settings, and check and install updates from there. Although this has nothing to do with WinGet, I use PSWindowsUpdate for the task. It works great.
Then, I have to open Microsoft Store, head the installed apps list, click in Update, and hope that it works.
Now, I'm wondering... if WinGet can install Microsoft Store apps, why shouldn't it be able to update them?
It would be so cool!
And I think I'm not the only one looking for something like it, when I Google Update microsoft store apps from powershell, there are plenty of people asking for some solution while none exist so far, it seems.
And I'm sorry if this is a duplicate, I searched for existing issues before opening.
Proposed technical implementation details
I'll leave that up to you, but I'd say that this should probably come enabled by default when running
winget upgrade
, including--all
, the same waymsstore
is enabled by default when runningwinget install
.Maybe I could use
winget upgrade --all -s winget
orwinget upgrade --all -s msstore
to filter out if I need?The text was updated successfully, but these errors were encountered: