Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I screwed up, how can I uninstall my program?

My Wix installer worked installing my program, but it's broken for uninstallation. A file is removed too early, and it's needed further down the line. The uninstaller fails and reverts its changes.

This means I can't remove the package from my machine, and hence can't install any further builds of my installer (a considerable inconvenience). How can I force removal of the package?

like image 715
fredley Avatar asked Mar 14 '12 11:03

fredley


People also ask

How do I force a corrupted program to uninstall?

Press down the CTRL+SHIFT+ESC keys together to open the Task Manager. It should already be on the processes tab. Select the Program or App you want to uninstall from the list under processes. Now try running the uninstall on the Program/App again.

Does uninstalling a program remove everything?

5. Windows will uninstall the program, deleting all of its files and data. In some cases, the program may have its own custom uninstaller, which should open when you click "Uninstall." When it's complete, the program will disappear from the list.


1 Answers

Update, Stein Åsmul: Injecting this newer list of cleanup approaches.


  1. Find your package in C:\Windows\Installer, where Windows keeps copies of installed MSI packages. The names are generated randomly, so you'll have to look at the creation dates of the files.

  2. Open the MSI file with Orca. (Unfortunately there is no simple download for the orca installer. You can get it by installing the "MSI Tools" of the Windows 10 SDK, and then searching for orca.msi in C:\Program Files (x86)\Windows Kits.)

  3. Delete the offending custom action from the CustomAction table

Now you should be able to uninstall the package.

UPDATE: You can find the actual cache MSI file using Powershell. That was for one package, you can also get for all packages (scroll down to first screenshot).

like image 200
Wim Coenen Avatar answered Sep 17 '22 21:09

Wim Coenen