microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.07k stars 1.43k forks source link

MS Store shows an update, but Winget does not #2374

Open Reeceeboii opened 2 years ago

Reeceeboii commented 2 years ago

Brief description of your issue

I have Termius installed on my system via Winget.

When I open the Microsoft Store, I can see that there is an available update for it that I can install:

image image

However, Winget does not show any available update, despite msstore being the source, and the installed version being 7.45.1.0 (the same version as listed in the MS Store):

PS> winget list | sls termius

Termius - SSH client                     9NK1GDVPX09V                             7.45.1.0                      msstore

PS> winget upgrade | sls termius

I have updated the msstore source to see if that was causing it, but this update is still not being picked up by Winget.

Am I right in assuming that the msstore source is a mirror of the actual MS Store? I.e. an update visible in the MS Store GUI should also be available as a Winget package upgrade? Or are the updates done slightly differently?

Steps to reproduce

  1. Install Termius via Winget (ID 9NK1GDVPX09V)
  2. Wait for an update to be available via the Microsoft Store
  3. List upgrades either via winget upgrade or check for available versions via winget list | sls termius

Expected behavior

MS Store updates should be visible and installable via Winget.

Actual behavior

They are not.

Environment

Windows Package Manager v1.2.11601
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.832
Package: Microsoft.DesktopAppInstaller v1.17.11601.0
denelon commented 2 years ago

@Reeceeboii for traditional Universal Windows Platform (UWP) in the Microsoft Store, the Windows Package Manager does not yet receive version information. The version reported is "Unknown". We're working with the Microsoft Store team to expose versions for these types of apps so we can determine when an upgrade is available in Windows Package Manager.

Reeceeboii commented 2 years ago

@denelon I've actually never published a UWP app to the store so am unsure how their versioning works but, afaik, Termius is not a UWP application.

Anyway, you are correct - if I run:

PS> winget search termius

The msstore package returns Unknown for its version. I was assuming that winget was fully aware of the versioning data as this appears in winget's outputs once it is installed locally. I wasn't aware that winget can't actually receive the upstream version.

I'm happy for this issue to be closed if it is already being tracked elsewhere!

denelon commented 2 years ago

I'll keep this one open to track the "external" work for the versioning information to be presented in the Microsoft Store source.

dcarapic commented 1 year ago

I have the same issue with Sysinternals suite. Its really annoying as it makes the 'upgrade' command not that usefull.

denelon commented 1 year ago

Hey, a quick update here. The store is starting to expose the version information for the Win32 packages. Today the version is present in winget show <packageId>, but not yet in winget search <packageId>.

 denelon  winget search "Adobe Acrobat Reader DC"
Name                             Id                          Version      Source
----------------------------------------------------------------------------------
Adobe Acrobat Reader DC          XPDP273C0XHQH2              Unknown      msstore
Adobe Acrobat Reader DC          Adobe.Acrobat.Reader.32-bit 22.003.20258 winget
Adobe Acrobat Reader DC (64-bit) Adobe.Acrobat.Reader.64-bit 22.003.20258 winget
 denelon  winget show "Adobe Acrobat Reader DC" -s msstore
Found Adobe Acrobat Reader DC [XPDP273C0XHQH2]
Version: 22.003.20258
Publisher: Adobe Inc.
Publisher Url: http://www.adobe.com/
Description:
  Adobe Acrobat Reader is the free, trusted global standard for viewing, printing, e-signing, sharing, and annotating PDFs.
Ig3l commented 1 year ago

I'd also like to be able to trigger update scans via winget as we only show the private store which effectively blocks access to the whole Microsoft Store (even updates scans) in Windows 11.

We do not want to give users full access to the Store.

Jorilx commented 5 months ago

@Reeceeboii for traditional Universal Windows Platform (UWP) in the Microsoft Store, the Windows Package Manager does not yet receive version information. The version reported is "Unknown".

I'm sorry, is this supposed to work now?

Gerome100 commented 1 week ago

any updates?