Open ppvnf opened 2 years ago
Related to
Related to
* [Manifest fields for custom uninstall arguments and return codes winget-cli#1885](https://github.com/microsoft/winget-cli/issues/1885)
What do you think about this idea: If --silent fails, shouldn't Winget try to uninstall without this tag automatically?
One of our key design criteria has been supporting "unattended" installations to support things like winget import packages.json
. We might consider a fallback approach to "non-silent" installs once we have some user driven settings or arguments to allow users to select that behavior.
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
It's currently impossible to uninstall Google Chrome using
winget uninstall Google.Chrome --silent
, except as administrator. However, it's possible to uninstall normally without --silent and using interactive modeSteps to reproduce
Install Google Chrome Try to uninstall it using Winget --silent Try to uninstall without --silent
Actual behavior
Error 1603 when uninstalling with --silent (except as admin)
Expected behavior
Be able to uninstall Google.Chrome (and other packages) using --silent.
If --silent fails, shouldn't Winget try to uninstall without this tag automatically?
Environment
Screenshots and Logs