-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
After winget upgrade ImageMagick.ImageMagick
, two different versions are installed side-by-side
#3069
Comments
This is often the case with packages that install side-by-side rather than upgrade over a range of versions. In recent versions of the client, we've added "--uninstall-previous", and it's possible to add the same logical behavior to the manifest. |
So this is a package issue (thought it could be), that I have posted in the wrong project? Sorry for that... |
@sba923 the entire class of "Side-by-Side" issues is tricky. We don't always know which "newer" versions of packages are going to be an "in place upgrade" vs. a new "side by side" install. Unfortunately, not everyone follows semantic versioning (including Microsoft) for every package. There is likely additional work needed in the schema, the client, and subsequently manifests. We've been chipping away at it, but it's also hard to set the right expectations for users when WinGet doesn't have enough information to be able to determine exactly what is going to happen. We have a long tail of work to do related to testing the upgrade scenario on the most recent previous version of packages. Creating these issues will still help others find them and as we continue to make improvements, it should help users reason about what is happening, and what they want to have happen on their system. |
The "separate" package "displayName" values are coming from the installer. In the community repository, the package identifier is "ImageMagick.ImageMagick", but those two versions are "side-by-side". The community hasn't modified the manifest to have "uninstallPrevoius" either because it hasn't been reported, or because user settings might be lost of the previous version is uninstalled before the new one gets installed. The same thing happens with "Ultimaker.Cura" and several other packages. |
Given the very "long" name, it's hard to capture via cli without making the terminal width wide enough to display it all. Optionally, the PowerShell cmdlet could be used to capture the full name, or you could use Windows Apps & Features to uninstall. Lots of paper cuts we need to continue working on here... |
I must confess I have kinda paused experimenting with the PowerShell cmdlets due to the issues I considered blocking (mainly with piping e.g. into |
No worries 😊 |
so I didn't miss a recent key improvement in the cmdlets, did I? |
February 14th, 2023 is the latest release which had some fixes. |
|
Let's continue here: #2796 (reply in thread) |
What version of winget support this flag? |
It's an experimental feature in the latest preview. |
Is this still happening on WinGet 1.8? |
I haven't experienced this in quite a while, so the answer seems to be "no." Most recent version is dated 2024-06-23, let's confirm at the next update? |
Haven't experienced this in quite a while, so the answer seems to be "no." Most recent version is dated 2024-06-23, let's confirm at the next update? |
Brief description of your issue
On a system with
ImageMagick
version7.1.0.62
, I ranwinget upgrade ImageMagick.ImageMagick
.Now I have both versions
7.1.0.62
and7.1.1.3
installed side-by-side (both machine-scope).Steps to reproduce
Run
winget upgrade ImageMagick.ImageMagick
on a system withImageMagick
version7.1.0.62
installed.Expected behavior
ImageMagick
version7.1.0.62
should've been replaced by the latest version (7.1.1.3
).Actual behavior
Both versions
7.1.0.62
and7.1.1.3
are installed side-by-side (both machine-scope), inC:\Program Files\ImageMagick-7.1.0-Q16-HDRI
andC:\Program Files\ImageMagick-7.1.1-Q16-HDRI
, respectively.Environment
The text was updated successfully, but these errors were encountered: