Finding Uninstall Commands for all installed apps

Whilst I’m a massive fan of PMPC, Scappman and Winget, there are times where I have to go old fashioned and package applications myself

I’ve found the best way of detecting the uninstall string to use is to install the application (ideally in a sandbox) and then go digging through the registry which works well, but is time consuming.

To speed things up, here is my latest script which digs through 32-bit and 64-bit registry keys and grabs the app name and uninstall string.

You then have the option to export to a CSV or output in a gridview where you can select a row and it will drop the uninstall into the copy buffer.

As always, you can find it on GitHub:

https://github.com/andrew-s-taylor/public/blob/main/Powershell%20Scripts/list-uninstall-keys.ps1

Or the PowerShell Gallery

Install-Script -Name list-uninstall-keys

Happy uninstalling!

12 thoughts on “Finding Uninstall Commands for all installed apps”

  1. Thats the confusing part. There is no output, no errors, no temporary opening and closing of any windows. And like I said, I ran it previously with no issue. I’m at a loss.

    Reply
  2. What could be a reason that this script won’t start the GUI for this on my machine?

    Running PS as admin, paste the command and press enter, it adds multiple lines of “PS C:\WINDOWS\system32>” and that’s it.

    I’ve used it previously and it worked just fine.

    Reply

Leave a Comment