Skip to content

Pin By ID misbehaves #2965

Open
Open

Description

@Trenly

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

Activity

  1. added
    Issue-Bug
    and removed
    Needs-Triage
    on Feb 14, 2023
  2. added
    Area-Matching
    on Feb 21, 2023
  3. hanjo commented on Apr 18, 2023

    @hanjo

    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.

  4. modified the milestones: v1.5-Client, on Jun 6, 2023
  5. removed this from the milestone on Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-MatchingIssue-Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions