microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.67k stars 4.51k forks source link

[Package Issue]: Google.Chrome #82692

Open ppvnf opened 2 years ago

ppvnf commented 2 years ago

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 mode

Steps 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

Copyright (c) Microsoft Corporation. Todos os direitos reservados.

Windows: Windows.Desktop v10.0.19044.2006
Arquitetura do Sistema: X64
Pacote: Microsoft.DesktopAppInstaller v1.18.2691.0

Screenshots and Logs

Captura de tela 2022-10-07 113616

Trenly commented 2 years ago

Related to

ppvnf commented 2 years ago

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?

denelon commented 2 years ago

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.