Skip to content
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

Pin By ID misbehaves #2965

Open
Trenly opened this issue Feb 14, 2023 · 1 comment
Open

Pin By ID misbehaves #2965

Trenly opened this issue Feb 14, 2023 · 1 comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@Trenly
Copy link
Contributor

Trenly commented Feb 14, 2023

Brief description of your issue

Probably related to #2966
Tried to pin MS Teams, but it said package was not found. Ran winget list Teams and saw:

PS C:\git\winget-pkgs> winget list Teams
Name                         Id              Version     Available  Source
---------------------------------------------------------------------------
Microsoft Teams              Microsoft.Teams 1.6.00.1381            winget
Teams Machine-Wide Installer Microsoft.Teams 1.5.0.8070  1.6.00.376 winget

Tried to use --name and --id to specify the package, but it found the one from MS Store

Steps to reproduce

Install teams, try to pin with winget pin add --name "Microsoft Teams" --id "Microsoft.Teams" --blocking

Expected behavior

Found Microsoft Teams [Microsoft.Teams]
Pin added successfully

Actual behavior

Found Microsoft Teams [XP8BT8DW290MPQ]
Pin added successfully

Environment

PS C:\git\winget-pkgs> winget --info
Windows Package Manager (Preview) v1.5.441-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2486
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.441.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Feb 14, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Feb 14, 2023
@denelon denelon added this to the v1.5-Client milestone Feb 15, 2023
@denelon denelon added this to WinGet Feb 15, 2023
@denelon denelon added the Area-Matching Issue related to correlation between installed package and manifest label Feb 21, 2023
@hanjo
Copy link

hanjo commented Apr 18, 2023

Closely related: It's possible to add the Teams listed above by running
winget pin add --name "Teams Machine-Wide Installer" -e
Output:

Found Microsoft Teams [Microsoft.Teams]
Pin added successfully

This seems to work.
However, it will not be shown when running winget pin list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants