microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.53k stars 1.39k forks source link

Unable to Uninstall Duplicate Packages #4475

Open SuperBartimus opened 1 month ago

SuperBartimus commented 1 month ago

Brief description of your issue

I'm having problems with trying to uninstall or remove the package

Steps to reproduce

Here are the commands issued:

PS> winget list winpaletter
Name        Id                        Version Available Source
--------------------------------------------------------------
WinPaletter Abdelrhman-AK.WinPaletter 1.0.9.0 1.0.9.3   winget
WinPaletter Abdelrhman-AK.WinPaletter 1.0.8.4 1.0.9.3   winget

PS> winget uninstall --force -e --ID Abdelrhman-AK.WinPaletter
No installed package found matching input criteria.

PS> winget uninstall --force -e --name WinPaletter --version 1.0.8.4
Multiple installed packages found matching input criteria. Please refine the input.
Name        Id
-------------------------------------
WinPaletter Abdelrhman-AK.WinPaletter
WinPaletter Abdelrhman-AK.WinPaletter

Expected behavior

Ability to target the package in some form or fashion and perform the uninstall or remove the entry from Winget if the uninstaller doesn't exist.

Actual behavior

See "Steps to reproduce"

Environment

winget --info
Windows Package Manager v1.7.11261
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3527
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.11261.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                \\Meir-Storr\Downloads

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

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

denelon commented 1 month ago

@superBartimus

We've been doing some work in WinGet with respect to packages that allow different versions to be installed side-by-side. If you are interested, you could try our latest preview release of WinGet and enable the experimental feature.