Skip to content

Can't install PowerShell #336

Description

@TomBrien

Brief description of your issue

I can't install PowerShell due to duplicate IDs. I think this might in part be due to PowerShell core changing name to PowerShell (I may be wrong). In part this is related to #292 but due to the duplicate IDs I see no way of selecting the desired package. as -v <version number> seems to be ignored

Steps to reproduce

  1. Run winget install powershell returns:

Expected behavior

PowerShell 7.0.1 installed

Actual behavior

Multiple apps found matching input criteria. Please refine the input.
Name               Id                           Version
---------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.0.1
Powershell Core    Microsoft.Powershell         7.0.0
PowerShell-Preview Microsoft.PowerShell-Preview 7.1.0-preview.3

Attempting to specify the desired version via winget install PowerShell -v 7.0.1 gives the same output

Specifying the Id rather than the Name via winget install Microsoft.PowerShell -v 7.0.1 once again just produces the list

Environment

[winget --info]
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.18363.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions