Skip to content

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

Open

Description

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

Activity

  1. denelon commented on Nov 20, 2023

    @denelon
    Collaborator

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

  2. added
    Area-External
    Area-Matching
    Side-by-Side
    Needs-Author-Feedback
    and removed
    Needs-Triage
    on Nov 20, 2023
  3. anthonyvdotbe commented on Nov 21, 2023

    @anthonyvdotbe
    Author

    Yes. Gyan.FFmpeg.Shared:
    image

    and Gyan.FFmpeg:
    image

  4. added
    Needs-Attention
    and removed
    Needs-Author-Feedback
    on Nov 21, 2023
  5. denelon commented on Nov 21, 2023

    @denelon
    Collaborator

    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.

  6. removed
    Needs-Attention
    on Nov 21, 2023
  7. denelon commented on Apr 2, 2024

    @denelon
    Collaborator

    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:

  8. denelon commented on Jul 3, 2024

    @denelon
    Collaborator

    Is this problem still occurring with WinGet 1.8?

  9. added
    Needs-Author-Feedback
    on Jul 3, 2024
  10. anthonyvdotbe commented on Jul 4, 2024

    @anthonyvdotbe
    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

  11. added
    Needs-Attention
    and removed
    Needs-Author-Feedback
    on Jul 4, 2024
  12. removed
    Needs-Attention
    on Jul 9, 2024
  13. Nnnes commented on Jan 3, 2025

    @Nnnes

    (WinGet 1.9.25200) GISInternals.GDAL and its plugins, e.g. GISInternals.GDAL.FileGDB, have the same or a similar problem. Trying to install the plugins after installing the core results in an error message:

    Found an existing package already installed. Trying to upgrade the installed package...
    No available upgrade found.
    No newer package versions are available from the configured sources.
    

    A workaround is to use the --force flag to install the plugin, after which it works as expected. (Asking WinGet to install a plugin without the core installed also works as expected - the core is a dependency and both are installed.)

    A second problem is that WinGet can't uninstall only the plugin; you have to either uninstall the core and all plugins at once or use Windows Settings > Apps > Installed Apps.

    In AppsAndFeatureEntries, GISInternals.GDAL and the plugins share the same Publisher, DisplayVersion, and UpgradeCode, but not the same DisplayName (including the part outside of any parentheses) or ProductCode.

    (I submitted the manifests for these but I am not the publisher. Is there something I can rewrite on the manifest side to avoid the problem?)

    Screenshot

    Image

  14. added
    Issue-Bug
    on Dec 19, 2025
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-ExternalArea-MatchingIssue-BugSide-by-Side

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions