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.38k stars 1.46k forks source link

winget cannot found Microsoft Photos Legacy #2770

Open khewweifeng opened 1 year ago

khewweifeng commented 1 year ago

Brief description of your issue

winget cannot found Microsoft Photos Legacy

Steps to reproduce

winget search photos

winget search --name photos

winget search --name legacy

Expected behavior

show name id version source as below

image

Actual behavior

It does not show Microsoft Photos Legacy ...

if search with id (as below), it can display the result

winget search 9NV2L4XVMCXM

image

Environment

winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.963
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0
khewweifeng commented 1 year ago

id source from https://apps.microsoft.com/store/detail/microsoft-photos-legacy/9NV2L4XVMCXM

stephengillie commented 1 year ago

Even searching by exact name doesn't bring a match.

PS C:\> winget search 9NV2L4XVMCXM
Name                    Id           Version Source
-----------------------------------------------------
Microsoft Photos Legacy 9NV2L4XVMCXM Unknown msstore
PS C:\> winget search --name "Microsoft Photos Legacy"
No package found matching input criteria.
Trenly commented 1 year ago

winget search --name "Microsoft Photos Legacy"

It's definitely not client side. The API call to search the store results is returning nothing -

2022-12-15 11:17:48.626 [REPO] Http POST request details:
POST / HTTP/1.1
Content-Length: 215
Content-Type: application/json
User-Agent: winget-cli WindowsPackageManager/1.3.2691 DesktopAppInstaller/Microsoft.DesktopAppInstaller v1.18.2691.0
Version: 1.1.0

{"Filters":[{"PackageMatchField":"PackageName","RequestMatch":{"KeyWord":"Microsoft Photos Legacy","MatchType":"Exact"}},{"PackageMatchField":"Market","RequestMatch":{"KeyWord":"US","MatchType":"CaseInsensitive"}}]}

2022-12-15 11:17:49.532 [REPO] Response status: 200
2022-12-15 11:17:49.532 [REPO] Response details:

HTTP/1.1 200 OK
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Length: 140
Content-Type: application/json; charset=utf-8
Date: Thu, 15 Dec 2022 17:17:49 GMT
Expires: Thu, 15 Dec 2022 17:17:49 GMT
MS-CV: Hc+175X5pECCDo6w.14
Pragma: no-cache
Server: Microsoft-HTTPAPI/2.0
X-OSG-Served-By: Torus-EASTUS_Legacy00001E_1.0.0.0

{"$type":"Microsoft.Marketplace.Storefront.StoreEdgeFD.BusinessLogic.Response.ManifestSearch.ManifestSearchResponse, StoreEdgeFD","Data":[]}

However, I wonder if it's because it's a Windows 11 app, and isn't supported on Windows 10, which might be causing it to be filtered out? image image

khewweifeng commented 1 year ago

forgot to mention my OS , I am using Win 11

khewweifeng commented 1 year ago

winget search --name "Microsoft Photos Legacy"

It's definitely not client side. The API call to search the store results is returning nothing -

2022-12-15 11:17:48.626 [REPO] Http POST request details:
POST / HTTP/1.1
Content-Length: 215
Content-Type: application/json
User-Agent: winget-cli WindowsPackageManager/1.3.2691 DesktopAppInstaller/Microsoft.DesktopAppInstaller v1.18.2691.0
Version: 1.1.0

{"Filters":[{"PackageMatchField":"PackageName","RequestMatch":{"KeyWord":"Microsoft Photos Legacy","MatchType":"Exact"}},{"PackageMatchField":"Market","RequestMatch":{"KeyWord":"US","MatchType":"CaseInsensitive"}}]}

2022-12-15 11:17:49.532 [REPO] Response status: 200
2022-12-15 11:17:49.532 [REPO] Response details:

HTTP/1.1 200 OK
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Length: 140
Content-Type: application/json; charset=utf-8
Date: Thu, 15 Dec 2022 17:17:49 GMT
Expires: Thu, 15 Dec 2022 17:17:49 GMT
MS-CV: Hc+175X5pECCDo6w.14
Pragma: no-cache
Server: Microsoft-HTTPAPI/2.0
X-OSG-Served-By: Torus-EASTUS_Legacy00001E_1.0.0.0

{"$type":"Microsoft.Marketplace.Storefront.StoreEdgeFD.BusinessLogic.Response.ManifestSearch.ManifestSearchResponse, StoreEdgeFD","Data":[]}

However, I wonder if it's because it's a Windows 11 app, and isn't supported on Windows 10, which might be causing it to be filtered out? image image

that legacy app should support Win 10 because it was published on Win 10 at first

khewweifeng commented 1 year ago

can install with GUI method (search in ms store and install)

Karl-WE commented 1 year ago

Ot: Not related to winget, but the implementation of two photo apps is pretty much bogus from the application team. Plus the legacy App also don't have all the Features anymore like removing red eyes. So it's missing in both. Next both have a different model of albums. The new relies on OneDrive, which is basically the reason for the new App. The legacy and New photo App is also based on windows version. So only W11 22H2 will have to deal with it.

Karl-WE commented 1 year ago

@khewweifeng I believe they didn't change the app name in Windows 10 to legacy so we have a conflict in the naming based on OS Version. see above.

Legacy Photos App on Windows 10 = Microsoft. Photos

Photos App on Windows 11 = Microsoft. Photos

Legacy Photos App on Windows 11 = cannot be found outside? Using the store app id link from the Windows 11 22H2 Photos App.

Not sure if my words are clear.

khewweifeng commented 1 year ago

@khewweifeng I believe they didn't change the app name in Windows 10 to legacy so we have a conflict in the naming based on OS Version. see above.

Legacy Photos App on Windows 10 = Microsoft. Photos

Photos App on Windows 11 = Microsoft. Photos

Legacy Photos App on Windows 11 = cannot be found outside? Using the store app id link from the Windows 11 22H2 Photos App.

Not sure if my words are clear.

You mean winget install 9NV2L4XVMCXM ? (this is working)

denelon commented 1 year ago

It's worth a try :)

winget show 9NV2L4XVMCXM
Found Microsoft Photos Legacy [9NV2L4XVMCXM]
Version: Unknown
Publisher: Microsoft Corporation
Description:
  Photos Legacy is the app for Microsoft’s Legacy Collections, Albums, and Video Editor. Be empowered to do more with your photos and videos. Easily view, edit, compare, create albums, and make movies of your special memories.
  The filmstrip shows all the items from that location and allows you to jump to other photos while staying immersed in the experience. You can also compare photos and videos in the same app window using the multi-view mode. This is activated by selecting multiple items from the filmstrip interface.
  In the toolbar, you’ll get to work with edit, mark-up, favoriting, metadata, and have quick access to third-party photo editors. Enjoy your photos edge to edge and distraction-free by easily hiding the toolbars. Whether you are viewing or editing your photos, the Photos Legacy experience is intuitive, elegant, and seamlessly woven into the fabric of Windows 11.
License: ms-windows-store://pdp/?ProductId=9NV2L4XVMCXM
Privacy Url: https://go.microsoft.com/fwlink/?LinkId=521839
Copyright: (c) Microsoft Corporation
Agreements:
Category: Photo & video
Pricing: Free
Free Trial: No
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license

Installer:
  Installer Type: msstore
  Store Product Id: 9NV2L4XVMCXM
MegaSheepMaster commented 1 year ago

I am getting the same issue, can't install it through Winget. I can manually go install it by the Store on Win10 but it doesn't work on Win11. Trying the install with winget gives me : 0x803fb103 : unknown error