Uninstall stuck Application

2

1

I am an application developer. I have been working on an installer for my application. I seam to have messed it, my application is now stuck in control panel I cant uninstall it due to a loop in the install detection variables.

I know I have face this before years ago. However I can't seam to remember, was there a command for PowerShell or a registry change that can be done to remove stuck applications?

I haven't been able to find the solution in Google.

I checked

Get-AppxPackage | Select Name, PackageFullName

Its not listed there looks like that's just Microsoft stuff.

DaImTo

Posted 2016-07-08T11:16:06.783

Reputation: 123

Answers

2

Uninstaller records reside under Registry key

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

If you know GUID of your application, you can navigate directly to proper subkey instead of searching through all the subkeys.

Delete the entire subkey. Before that, you might also want to delete files/folders referred in various values of your subkey, e.g. in UninstallString or ModifyPath.


Also, if your problematic uninstaller is an EXE file, you can build fixed version and replace current one at location shown in value UninstallString. Then re-launch uninstallation and it should pass.

miroxlav

Posted 2016-07-08T11:16:06.783

Reputation: 9 376

I think its setting the Guid everytime i build so this is going to take a while. I assume i just need to delete that key? Its just an MSI i was testing and mucked up seriously. – DaImTo – 2016-07-08T11:33:29.097

Actually i was able to search on the name of my application. You are my hero thanks. – DaImTo – 2016-07-08T11:46:08.020

-1

Well... there is solution for regular user- i use CCleaner app (its free anyway). Can be used for very useful stuff. One of them is for uninstall programs (like this situation: check Tools -> Uninstall) and clear all wrong registry keys from Windows. In some situations - this can speed up your Windows boot process.

Good luck :)

Boris Delev

Posted 2016-07-08T11:16:06.783

Reputation: 134