Wednesday, October 19, 2011

Uninstalling an MSI that throws an error during uninstall process

I got caught in Catch 22 that I finally solved yesterday.  I'm working on building an MSI package and had installed it on my machine for testing.  When I went to uninstall, I couldn't because of an error in the MSI.

This was a big problem!  I fixed the problem in my MSI, but I couldn't repair or reinstall using the now fixed version because it wanted to remove the old version first.

After hours of searching, I finally found the right command:

msiexec /fv (product code)

/fv forced a reinstall using my new package.  Then, I could uninstall.

No comments:

Post a Comment