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

[Package Issue]: Microsoft.DotNet.DesktopRuntime.x - Wrong package uninstalled #132215

Open
marco-eckstein opened this issue Dec 30, 2023 · 1 comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@marco-eckstein
Copy link
Contributor

marco-eckstein commented Dec 30, 2023

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

@marco-eckstein marco-eckstein added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Dec 30, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Dec 30, 2023
@Trenly
Copy link
Contributor

Trenly commented Dec 31, 2023

@denelon - this is an issue for CLI

@stephengillie stephengillie removed the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants