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

"No installed package found matching input criteria." when trying to update 7zip #3690

Closed
PCAssistSoftware opened this issue Sep 27, 2023 · 7 comments
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. Side-by-Side Issue related to side by side package installation
Milestone

Comments

@PCAssistSoftware
Copy link

Brief description of your issue

Getting this error when trying to update 7-zip.

"No installed package found matching input criteria."

I can only update by supplying the full name of the app in quotes rather than the Id e.g. winget update "7-Zip 21.07 (x64)" rather than winget upgrade --id 7zip.7zip

CLI output for reference:

winget upgrade --id 7zip.7zip
No installed package found matching input criteria.

winget update "7-Zip 21.07 (x64)"
Found 7-Zip [7zip.7zip] Version 23.01
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://www.7-zip.org/a/7z2301-x64.exe
██████████████████████████████ 1.51 MB / 1.51 MB
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Successfully installed

Steps to reproduce

winget upgrade --id 7zip.7zip
No installed package found matching input criteria.

winget update "7-Zip 21.07 (x64)"
Found 7-Zip [7zip.7zip] Version 23.01
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://www.7-zip.org/a/7z2301-x64.exe
██████████████████████████████ 1.51 MB / 1.51 MB
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Successfully installed

Expected behavior

Would expect it to update using

winget upgrade --id 7zip.7zip

Actual behavior

Getting "No installed package found matching input criteria."

Environment

Windows 11

Windows Package Manager (Preview) v1.7.2491-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.23550.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.2491.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Sep 27, 2023
@Trenly
Copy link
Contributor

Trenly commented Sep 27, 2023

Can you post the output of winget list 7-zip

@PCAssistSoftware
Copy link
Author

Failed in attempting to update the source: winget
Name Id Version Source

7-Zip 23.01 (x64) 7zip.7zip 23.01 winget

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Matching Issue related to correlation between installed package and manifest and removed Needs-Triage Issue need to be triaged labels Sep 27, 2023
@saqib-s
Copy link

saqib-s commented Jan 23, 2024

@Trenly

PS C:> winget list 7-zip
Name Id Version Available Source
7-Zip 22.00 (x64 edition) 7zip.7zip 22.00.00.0 23.01 winget
7-Zip 23.01 (x64 edition) 7zip.7zip 23.01.00.0 winget
PS C:>

@Wallby
Copy link

Wallby commented Mar 2, 2024

@saqib-s

PS C:> winget list 7-zip
Name Id Version Available Source
7-Zip 22.00 (x64 edition) 7zip.7zip 22.00.00.0 23.01 winget
7-Zip 23.01 (x64 edition) 7zip.7zip 23.01.00.0 winget
PS C:>

Is this the same issue #2129, caused by there being more than one version of 7-Zip installed?

@denelon
Copy link
Contributor

denelon commented Jun 5, 2024

We've added experimental support for better Side-by-Side behavior in WinGet 1.8-preview releases.

Please try the experimental feature.
You can see which features are enabled with winget features
You can enable settings with winget settings (this opens the .json file in your default editor)
winget settings -? provides URLs pointing to documentation on our features.

@sba923
Copy link

sba923 commented Jun 5, 2024

I confirm the issue (as described in #4540) goes away after:

  • uninstalling 7-zip 24.06 using MsiExec.exe '/X{23170F69-40C1-2702-2406-000001000000}'
  • uninstalling 7-zip 24.05 using MsiExec.exe '/X{23170F69-40C1-2702-2405-000001000000}'
  • installing the latest 7-zip using winget install 7zip

image

I have no clue as to how two different versions could have been registered on the same machine, given that the installation path is the same... but that's another story

@denelon denelon added the Side-by-Side Issue related to side by side package installation label Jun 5, 2024
@denelon denelon added this to the 1.9 Client milestone Jul 3, 2024
@denelon
Copy link
Contributor

denelon commented Jul 3, 2024

We now have better support for side-by-side installation. You should be able to uninstall individual versions of packages, and the upgrade flow should work as well using WinGet 1.8.

@denelon denelon closed this as completed Jul 3, 2024
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. Side-by-Side Issue related to side by side package installation
Projects
None yet
Development

No branches or pull requests

6 participants