microsoft / microsoft/winget-pkgs
[Package Issue]: Microsoft.DotNet.DesktopRuntime.x - Wrong package uninstalled
Open
Nobody has claimed this yet.
Issue-Bug
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Category of the issue
Other
Brief description of your issue
When trying to uninstall Microsoft.DotNet.DesktopRuntime.6, Microsoft.DotNet.DesktopRuntime.8 is uninstalled.
Steps to reproduce
winget install --exact --id Microsoft.DotNet.DesktopRuntime.8
winget uninstall --exact --id Microsoft.DotNet.DesktopRuntime.6
winget list | Select-String "Microsoft.DotNet.DesktopRuntime"
Actual behavior
PS C:\Users\Marco> winget list | Select-String "Microsoft.DotNet.DesktopRuntime"
PS C:\Users\Marco> winget install --exact --id Microsoft.DotNet.DesktopRuntime.8
Found Microsoft .NET Windows Desktop Runtime 8.0 [Microsoft.DotNet.DesktopRuntime.8] Version 8.0.0
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://dotnetcli.azureedge.net/dotnet/WindowsDesktop/8.0.0/windowsdesktop-runtime-8.0.0-win-x64.exe
██████████████████████████████ 55.4 MB / 55.4 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Users\Marco> winget list | Select-String "Microsoft.DotNet.DesktopRuntime"
Microsoft Windows Desktop Runtime - 8.0 Microsoft.DotNet.DesktopRuntime.8 8.0.0 winget
PS C:\Users\Marco> winget uninstall --exact --id Microsoft.DotNet.DesktopRuntime.6
Found Microsoft .NET Windows Desktop Runtime 6.0 [Microsoft.DotNet.DesktopRuntime.6]
Starting package uninstall...
Successfully uninstalled
PS C:\Users\Marco> winget list | Select-String "Microsoft.DotNet.DesktopRuntime"
PS C:\Users\Marco>
Expected behavior
WinGet should not uninstall packages for which uninstallation has not been requested.
Environment
Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.3803
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0
Screenshots and Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PowerShell install and uninstall commands from the issue on the reported WinGet and Windows versions. Inspect the manifest or package metadata for Microsoft.DotNet.DesktopRuntime.6 and Microsoft.DotNet.DesktopRuntime.8, then verify that uninstalling version 6 leaves version 8 installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100