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

Can't install PowerShell #336

Closed
TomBrien opened this issue May 26, 2020 · 4 comments
Closed

Can't install PowerShell #336

TomBrien opened this issue May 26, 2020 · 4 comments
Milestone

Comments

@TomBrien
Copy link

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
@ghost ghost added the Needs-Triage Issue need to be triaged label May 26, 2020
@megamorf
Copy link

@TomBrien Thanks for reporting this problem. However, I'd recommend closing this issue as this problem has been reported multiple times already:

What you are looking for as an immediate solution is the --exact (-e) parameter until the user experience of the winget commands has been improved.

@TomBrien
Copy link
Author

My bad. cheers

@ebmarquez
Copy link
Member

I'm seeing the same issue

C:\Users\emarq.REDMOND\Downloads\ICM> winget install --name PowerShell --id Microsoft.PowerShell
Multiple apps found matching input criteria. Please refine the input.
Name               Id                           Version
---------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.0.1
PowerShell-Preview Microsoft.PowerShell-Preview 7.1.0-preview.3
C:\Users\emarq.REDMOND\Downloads\ICM> winget install --name PowerShell --id Microsoft.PowerShell -v "7.0.1"
Multiple apps found matching input criteria. Please refine the input.

@megamorf
Copy link

megamorf commented Jun 3, 2020

@ebmarquez This issue has already been closed and a solution can be found in my reply above as well as in the issues that I've linked to.

@denelon denelon removed the Needs-Triage Issue need to be triaged label Dec 28, 2021
@denelon denelon added this to the v1.3-Client milestone Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants