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
22.6k stars 1.4k forks source link

winget install wrong pacakge from msstore #4025

Open alanlivio opened 6 months ago

alanlivio commented 6 months ago

Brief description of your issue

I am trying to install the 'Visual Studio Code' using the msstore source but it installs 'Visual Studio Code - Insiders'.

Steps to reproduce

> winget install -s msstore "Visual Studio Code"

Expected behavior

winget install 'Visual Studio Code'

Actual behavior

winget install a different 'Visual Studio Code - Insiders'

> winget install -s msstore "Visual Studio Code"
Found Visual Studio Code - Insiders [XP8LFCZM790F6B] Version 1.84.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Agreements for Visual Studio Code - Insiders [XP8LFCZM790F6B] Version 1.84.0

Environment

Windows Package Manager (Preview) v1.7.2782-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.2861
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.2782.0
denelon commented 6 months ago

I'm not sure why the "msstore" source is defaulting to the Insider version.

I'll let them know.

As a workaround, you can use the explicit ID "XP9KHM4BK9FZ7Q".

I found that after running a search:

winget search code -s msstore
Name                                 Id             Version
-----------------------------------------------------------
#Code                                9NBLGGH4S3MF   Unknown
Visual Studio Code                   XP9KHM4BK9FZ7Q Unknown
Code Writer                          9WZDNCRFHZDT   Unknown
Visual Studio Code - Insiders        XP8LFCZM790F6B Unknown
WiFi QR Code Scanner                 9PNHNRBG9WLH   Unknown
QR Code Scanner                      9NZFK4DCXMZ4   Unknown
Serris Code Editor                   9NBLGGH4RM22   Unknown
Photo Scan : OCR and QR Code Scanner 9NBLGGH4S87W   Unknown
Send To QR Code                      9WZDNCRFJHJ9   Unknown
Visual Code Editor                   9NG2QVSXT34H   Unknown
QR-Code Generator                    9PB220Q9NZZR   Unknown
Free QR Code Scanner                 9N7QFLXDQ6QP   Unknown
Morse Code Lite                      9N4L35VDQTGP   Unknown
Car Codes                            9NBLGGH5PNJD   Unknown
QR code generator for windows        9P008J0VX9PJ   Unknown
Fast QR Code Maker                   9N570B7R2ZZ5   Unknown
1D/2D Code Maker                     9N850ZC519KH   Unknown
Code Graph                           9NJGHRWNLPXW   Unknown

Clearly they are defaulting to the Insider version:

winget show "Visual Studio Code" -s msstore
Found Visual Studio Code - Insiders [XP8LFCZM790F6B]
Version: 1.84.0
Publisher: Microsoft Corporation
Publisher Url: https://code.visualstudio.com/
Description:
  This is the insiders build of Visual Studio Code, which contains the latest features shipped daily. Visual Studio Code is a free, lightweight, and extensible code editor for building web, desktop, and mobile applications, using any programming language and framework.

  Visual Studio Code has built-in support for Git source control management and powerful integrations with GitHub, an integrated debugger, and smart code completion with IntelliSense and with AI-driven IntelliCode. With over 30,000 extensions and themes in the Visual Studio Code Marketplace, you can customize the features and the look of Visual Studio Code to fit your needs, preferences, and style.

  You can use Visual Studio Code to build any kind of app, for web, desktop, and mobile. Visual Studio Code supports JavaScript and TypeScript natively and offers extensions for coding in languages such as Python, Java, C/C++, C#, Go, Rust, PHP, and many more.
License: https://code.visualstudio.com/License/
Privacy Url: https://privacy.microsoft.com/en-US/privacystatement
Copyright: ms-windows-store://pdp/?ProductId=XP8LFCZM790F6B
Tags:
  programming
  coding
  code
  vscode
  vs
  editor
  insiders
Agreements:
Category: Developer tools
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: exe
  Installer Locale: en-us
  Installer Url: https://github.com/microsoft/vscode-winsta11er/releases/download/v0.0.6/vscode-winsta11er-insiders-x64.exe
  Installer SHA256: 24eac058ccdc91bfa5cb48788325502ae8da2ea85c380aa519d750f3dfe28697