Wednesday, August 12, 2009

MSI Package Uninstall Issue

So what happens, you write some C# code to go with your WIX installer. The C# code only runs on uninstallation. But ... during development you write some dodgy code, it causes an exception which makes the uninstallation fail.

Take a look here,

http://blogs.msdn.com/astebner/archive/2005/12/24/507294.aspx

And here,

http://www.advancedinstaller.com/user-guide/qa-forced-uninstall.html

I found that msizap didn't work for me, but what did was going to the directory '%windir%\installer' and searching for the most recent file, editing it with orca, and removing the custom action causing a problem did the trick nicely.

No comments: