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

Winget says package is already installed, when it isn't #3910

Open
anthonyvdotbe opened this issue Nov 19, 2023 · 6 comments
Open

Winget says package is already installed, when it isn't #3910

anthonyvdotbe opened this issue Nov 19, 2023 · 6 comments
Labels
Area-External Issue outside of winget-cli source Area-Matching Issue related to correlation between installed package and manifest Side-by-Side Issue related to side by side package installation

Comments

@anthonyvdotbe
Copy link

Brief description of your issue

2 flavors of FFmpeg cannot be installed alongside each other, but the error message doesn't make sense and is confusing.

Steps to reproduce

  • winget install --id 'Gyan.FFmpeg' --scope machine
  • winget install --id 'Gyan.FFmpeg.Shared' --scope machine

Expected behavior

Either both packages install, or the second command explains that Gyan.FFmpeg.Shared cannot be installed alongside Gyan.FFmpeg (ideally, it would also explain that Gyan.FFmpeg.Shared is a superset of Gyan.FFmpeg, and propose to uninstall Gyan.FFmpeg automatically before installing Gyan.FFmpeg.Shared).

Actual behavior

The second command just says the package is already installed, which is not true and confusing. What's particularly problematic to me, is that the commands use IDs, so it doesn't make sense to me that 2 packages with different IDs cause this behavior.

Environment

Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.2715
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Nov 19, 2023
@denelon
Copy link
Contributor

denelon commented Nov 20, 2023

Are there any difference in Windows Apps & Feature via settings between how these two applications appear when they are installed?

@denelon denelon added Area-External Issue outside of winget-cli source Area-Matching Issue related to correlation between installed package and manifest Side-by-Side Issue related to side by side package installation Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Triage Issue need to be triaged labels Nov 20, 2023
@anthonyvdotbe
Copy link
Author

Yes. Gyan.FFmpeg.Shared:
image

and Gyan.FFmpeg:
image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Nov 21, 2023
@denelon
Copy link
Contributor

denelon commented Nov 21, 2023

I see what's happening. The part in parenthesis is generally ignored. This is often a mechanism used to indicate scope or architecture but hasn't been reliable enough to use as authoritative since it's just a "displayName" field.

WinGet would see both entries as the same package. It may be possible to add Apps and Features entries to the manifests to clearly differentiate the "displayName" properties. We've been discussing changing the default logic to include what is in parenthesis when the Apps and Features entries are present in the manifest.

@denelon
Copy link
Contributor

denelon commented Apr 2, 2024

We've been working on the side-by-side scenarios. You could try the latest release and enable the experimental feature on:

Please provide feedback at:

@denelon
Copy link
Contributor

denelon commented Jul 3, 2024

Is this problem still occurring with WinGet 1.8?

@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Jul 3, 2024
@anthonyvdotbe
Copy link
Author

With winget v1.8.1791, following the Steps to reproduce no longer gives an error message, but now they both show with the same Id with winget list. However, if you explicitly do winget list --id Gyan.FFmpeg.Shared, it only lists one as expected. So there's still a bug here:

Screenshot 2024-07-04 204013

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Jul 4, 2024
@denelon denelon removed the Needs-Attention Issue needs attention from Microsoft label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External Issue outside of winget-cli source Area-Matching Issue related to correlation between installed package and manifest Side-by-Side Issue related to side by side package installation
Projects
None yet
Development

No branches or pull requests

2 participants