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!
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.
If you edit the script and run it from within ISE, does it run?
What do you mean by “edit the script”? Am I supposed to be replacing part of the script with something?
I’ve tried to run it in ISE elevated as well with no luck.
When you install it, the script should be in your PowerShell profile. You can open that within ISE and run manually to see if it gives any errors
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.
Can you share what command you are running?
The one listed in the post:
Install-Script -Name list-uninstall-keys
Can you share the output?
There is no output. It just drops down a line with another place for me to enter a new command.
What happens if you then try to run the script?
The same thing happens. I can enter the command again and it just creates new lines waiting for input.
When running you don’t get any errors or anything at all?