winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Switch for --uninstallPrevious for upgrade

Open Trenly opened this issue 3 years ago • 1 comments

Description of the new feature / enhancement

The upgrade behavior can be set to uninstall the previous version of the application by default in the manifest. Usually, upgrade behavior is set to install unless uninstallPrevious is needed for a specific reason.

As a power user there are times when it would be nice to override the behavior and uninstall the previous package anyways. One example is when a user has a local build of wingetcreate, the application will show for upgrade but cannot be upgraded unless it is uninstalled and re-installed.

This would also allow for the bypassing/overriding of the Install Technology Differs error by forcing a clean install

Proposed technical implementation details

No response

Trenly avatar Nov 29 '22 03:11 Trenly

@denelon - Experimental

Trenly avatar Jan 27 '23 03:01 Trenly