microsoft / microsoft/winget-cli

After `winget upgrade ImageMagick.ImageMagick`, two different versions are installed side-by-side

Open
#3,069 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Side-by-Side
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

On a system with ImageMagick version 7.1.0.62, I ran winget upgrade ImageMagick.ImageMagick.

Now I have both versions 7.1.0.62 and 7.1.1.3 installed side-by-side (both machine-scope).

Steps to reproduce

Run winget upgrade ImageMagick.ImageMagick on a system with ImageMagick version 7.1.0.62 installed.

Expected behavior

ImageMagick version 7.1.0.62 should've been replaced by the latest version (7.1.1.3).

Actual behavior

Both versions 7.1.0.62 and 7.1.1.3 are installed side-by-side (both machine-scope), in C:\Program Files\ImageMagick-7.1.0-Q16-HDRI and C:\Program Files\ImageMagick-7.1.1-Q16-HDRI, respectively.

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

Windows: Windows.Desktop v10.0.19045.2604
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the upgrade with winget upgrade ImageMagick.ImageMagick on the stated Windows environment and inspect the diagnostic logs under %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir. Trace how the existing 7.1.0.62 installation is handled during the upgrade; done means the old machine-scope version is replaced rather than left beside 7.1.1.3.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.