Skip to content

Handle already uninstalled applications #2171

Description

@Trenly

Description of the new feature / enhancement

When the files no longer exist for an uninstaller, but the ARP entry does exist, running winget uninstall <package> (especially if run during the uninstallPrevious upgrade flow) results in an error 0x800401f5 : Application not found

This is the same error which causes appwiz.cpl to report this message on an attempted uninstall - “An error occurred while trying to uninstall. It may have already been uninstalled. Would you like to remove from the Add or Remove Programs list?”

As a user, I would expect winget to be able to detect this and proceed with the upgrade, remove the errant ARP entry, and/or provide a clearer error/warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-UninstallIssue related to WinGet UninstallIssue-FeatureThis is a feature request for the Windows Package Manager client.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions