View Full Version : Detecting a failed install for a custom action to clean up com registration

06-20-2007, 12:19 AM

Im using a basic MSI project and testing my product for Vista certification. One of the test cases requires adding a merge module to the msi that will cause it to fail and roll back at the very end.

My product uses several activeX controls, all of which I had set to self-register. The self-register works fine on the install, but does not roll back on failure. I think I need a custom action to unregister all the files.

Can someone tell me what condition I need on a custom action to have it run only on installation failure ?


06-20-2007, 05:05 PM
Can you use a rollback custom action (a type of deferred action)? Assuming COM extraction doesn't work for you...

06-24-2007, 06:56 PM
Thanks Robert - I ended up using COM extraction rather than self-registration and that seems to work ok on rollback. Thanks for the tip.