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

Unable to Remove Application from List After It Was Manually Uninstalled/Removed #2651

Closed
B4RN154N opened this issue Oct 31, 2022 · 4 comments
Labels
Area-External Issue outside of winget-cli source Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@B4RN154N
Copy link

Brief description of your issue

I had two versions of Blender installed on my machine, now it seems that they are both gone. Whenever I update with winget I get an error as it's failing to remove them.

Here's the issue:

PS C:\WINDOWS\system32> winget list Blender
Name    Id                        Version Available Source
----------------------------------------------------------
Blender BlenderFoundation.Blender 2.79.2  3.3.1     winget
Blender BlenderFoundation.Blender 2.82.1  3.3.1     winget
PS C:\WINDOWS\system32> winget uninstall Blender
Multiple installed packages found matching input criteria. Please refine the input.
Name    Id
---------------------------------
Blender BlenderFoundation.Blender
Blender BlenderFoundation.Blender
PS C:\WINDOWS\system32> winget uninstall -e --name Blender --id BlenderFoundation.Blender --version 2.79.2
No installed package found matching input criteria.
PS C:\WINDOWS\system32> winget uninstall -e --name Blender --id BlenderFoundation.Blender --version 2.82.1
No installed package found matching input criteria.
PS C:\WINDOWS\system32>

I've inherited this computer from previous colleges, so it might have been uninstalled improperly.

Steps to reproduce

Suspected repro steps:

Install the two specific versions of Blender (2.79.2, 2.82.1) and then delete them via file explorer or through "Add or remove programs" system menu.

Expected behavior

When the user tries to uninstall software that was uninstalled outside of winget, winget removes those packages from its list of entries since those apps cannot be found and should not be updated/uninstalled.

Actual behavior

When calling uninstall on a package that cannot be found/doesn't exist, winget doesn't remove it from the list, so it will try and fail to remove that package every time.

Environment

Windows Package Manager v1.3.2691
Windows: Windows.Desktop v10.0.19044.2130
Package: Microsoft.DesktopAppInstaller v1.18.2691.0
@ghost ghost added the Needs-Triage Issue need to be triaged label Oct 31, 2022
@B4RN154N B4RN154N changed the title Unable to Remove Application from List After It Was Manually Uninstalled Unable to Remove Application from List After It Was Manually Uninstalled/Removed Oct 31, 2022
@Trenly
Copy link
Contributor

Trenly commented Oct 31, 2022

Uninstall by version doesn't work currently. See #1886

If you use appwiz.cpl (The Add & Remove Programs Menu) to uninstall the application, it should remove the entry from winget.

Also related to -

@B4RN154N
Copy link
Author

Unfortunately, Blender does not appear on that list.

@Trenly
Copy link
Contributor

Trenly commented Oct 31, 2022

Unfortunately, Blender does not appear on that list.

In that case it is an issue with Blender not removing it's entries from the registry when the uninstaller is run. You may need to use a tool such as Revo Uninstaller to remove the errant registry entries

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-External Issue outside of winget-cli source and removed Needs-Triage Issue need to be triaged labels Oct 31, 2022
@B4RN154N
Copy link
Author

B4RN154N commented Nov 2, 2022

Yeah, you were right. Revo Uninstaller found the leftovers and removed it. All working now 👍🏻
Cheers!

@B4RN154N B4RN154N closed this as completed Nov 2, 2022
@denelon denelon added this to the v1.4-Client milestone Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External Issue outside of winget-cli source Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants