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 uninstall programs #3178

Open
3 tasks done
DudeThatsErin opened this issue Jan 26, 2025 · 0 comments
Open
3 tasks done

Unable to uninstall programs #3178

DudeThatsErin opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@DudeThatsErin
Copy link

DudeThatsErin commented Jan 26, 2025

Describe the bug

The utility just fails. Doesn't matter what apps I select. Everything was installed via the utility but they are unable to be uninstalled by the utility.

The way I run it is with a powershell script that I run as administrator that goes to the winutil website and runs it fresh every time just like if I were typing it in each time. My own version of the .exe that is available but only for paid users.

The ones I was selecting though (in case it matters) were:

Slack
Teams
Brave Browser
Firefox Browser
Obsidian MD App
Lightshot Screenshot App
Syncthingtray

Steps to reproduce

  1. Run Winutil via Admin
  2. Select a few apps to uninstalll
  3. Click uninstall selected
  4. Click Ok
  5. See that the uninstalls fail

Expected behavior

The uninstalls succeed

Screenshots

Image

Additional context

Here are the powershell outputs...

====Chris Titus Tech=====
=====Windows Toolbox=====

===========================================
---        Winget is installed          ---
===========================================
Version: v1.9.25200
    - Winget is a release version.
    - Winget is Up to Date
Getting Installed Programs...
Done...
Queueing SlackTechnologies.Slack Obsidian.Obsidian Skillbrains.Lightshot Microsoft.Sysinternals.Autoruns Brave.Brave Mozilla.Firefox Martchus.syncthingtray Bitwarden.Bitwarden Microsoft.Teams for Winget uninstall
Queueing  for Winget uninstall
===========================================
--    Configuring winget packages       ---
===========================================
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

An argument was provided that can only be used for single package

Uninstalls the selected package, either found by searching the installed packages list or directly from a manifest. By default, the query must case-insensitively match the id, name, or moniker of the package. Other fields can be used by passing their appropriate option.

usage: winget uninstall [[-q] <query>...] [<options>]

The following command aliases are available:
  remove
  rm

The following arguments are available:
  -q,--query                  The query used to search for a package

The following options are available:
  -m,--manifest               The path to the manifest of the package
  --id                        Filter results by id
  --name                      Filter results by name
  --moniker                   Filter results by moniker
  --product-code              Filters using the product code
  -v,--version                The version to act upon
  --all,--all-versions        Uninstall all versions
  -s,--source                 Find package using the specified source
  -e,--exact                  Find package using exact match
  --scope                     Select installed package scope filter (user or machine)
  -i,--interactive            Request interactive installation; user input may be needed
  -h,--silent                 Request silent installation
  --force                     Direct run the command and continue with non security related issues
  --purge                     Deletes all files and directories in the package directory (portable)
  --preserve                  Retains all files and directories created by the package (portable)
  -o,--log                    Log location (if supported)
  --header                    Optional Windows-Package-Manager REST source HTTP header
  --authentication-mode       Specify authentication window preference (silent, silentPreferred or interactive)
  --authentication-account    Specify the account to be used for authentication
  --accept-source-agreements  Accept all source agreements during source operations
  -?,--help                   Shows help about the selected command
  --wait                      Prompts the user to press any key before exiting
  --logs,--open-logs          Open the default logs location
  --verbose,--verbose-logs    Enables verbose logging for winget
  --nowarn,--ignore-warnings  Suppresses warning outputs
  --disable-interactivity     Disable interactive prompts
  --proxy                     Set a proxy to use for this execution
  --no-proxy                  Disable the use of proxy for this execution

More help can be found at: https://aka.ms/winget-command-uninstall
Failed to uninstall SlackTechnologies.Slack Obsidian.Obsidian Skillbrains.Lightshot Microsoft.Sysinternals.Autoruns Brave.Brave Mozilla.Firefox Martchus.syncthingtray Bitwarden.Bitwarden Microsoft.Teams.
No installed package found matching input criteria.
Failed to uninstall .
===========================================
--       Uninstalls have finished       ---
===========================================
===========================================
---        Winget is installed          ---
===========================================
Version: v1.9.25200
    - Winget is a release version.
    - Winget is Up to Date
Getting Installed Programs...
Done...
Queueing SlackTechnologies.Slack Microsoft.Edge Obsidian.Obsidian Skillbrains.Lightshot JetBrains.Toolbox Brave.Brave Mozilla.Firefox Martchus.syncthingtray Microsoft.Teams for Winget uninstall
Queueing  for Winget uninstall
===========================================
--    Configuring winget packages       ---
===========================================
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

An argument was provided that can only be used for single package

Uninstalls the selected package, either found by searching the installed packages list or directly from a manifest. By default, the query must case-insensitively match the id, name, or moniker of the package. Other fields can be used by passing their appropriate option.

usage: winget uninstall [[-q] <query>...] [<options>]

The following command aliases are available:
  remove
  rm

The following arguments are available:
  -q,--query                  The query used to search for a package

The following options are available:
  -m,--manifest               The path to the manifest of the package
  --id                        Filter results by id
  --name                      Filter results by name
  --moniker                   Filter results by moniker
  --product-code              Filters using the product code
  -v,--version                The version to act upon
  --all,--all-versions        Uninstall all versions
  -s,--source                 Find package using the specified source
  -e,--exact                  Find package using exact match
  --scope                     Select installed package scope filter (user or machine)
  -i,--interactive            Request interactive installation; user input may be needed
  -h,--silent                 Request silent installation
  --force                     Direct run the command and continue with non security related issues
  --purge                     Deletes all files and directories in the package directory (portable)
  --preserve                  Retains all files and directories created by the package (portable)
  -o,--log                    Log location (if supported)
  --header                    Optional Windows-Package-Manager REST source HTTP header
  --authentication-mode       Specify authentication window preference (silent, silentPreferred or interactive)
  --authentication-account    Specify the account to be used for authentication
  --accept-source-agreements  Accept all source agreements during source operations
  -?,--help                   Shows help about the selected command
  --wait                      Prompts the user to press any key before exiting
  --logs,--open-logs          Open the default logs location
  --verbose,--verbose-logs    Enables verbose logging for winget
  --nowarn,--ignore-warnings  Suppresses warning outputs
  --disable-interactivity     Disable interactive prompts
  --proxy                     Set a proxy to use for this execution
  --no-proxy                  Disable the use of proxy for this execution

More help can be found at: https://aka.ms/winget-command-uninstall
Failed to uninstall SlackTechnologies.Slack Microsoft.Edge Obsidian.Obsidian Skillbrains.Lightshot JetBrains.Toolbox Brave.Brave Mozilla.Firefox Martchus.syncthingtray Microsoft.Teams.
No installed package found matching input criteria.
Failed to uninstall .
===========================================
--       Uninstalls have finished       ---
===========================================
@{winget=Google.Chrome; choco=googlechrome}
Queueing Google.Chrome for Winget install
===========================================
---        Winget is installed          ---
===========================================
Version: v1.9.25200
    - Winget is a release version.
    - Winget is Up to Date

Winget is already installed.
===========================================
--    Configuring winget packages       ---
===========================================
Found Google Chrome [Google.Chrome] Version 132.0.6834.111
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi
  ██████████████████████████████   122 MB /  122 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Google.Chrome installed successfully.
===========================================
--      Installs have finished          ---
===========================================

As you can see I was able to reinstall Chrome but not uninstall anything else.

Issue validation

  • I checked for duplicate issues.
  • I checked for already existing discussions.
  • I checked for an already existing pull request addressing the issue.
@DudeThatsErin DudeThatsErin added the bug Something isn't working label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant