cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MarcusA
Level 3

Detecting a failed install for a custom action to clean up com registration

Hi,

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 ?

Thanks,
Marcus
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Can you use a rollback custom action (a type of deferred action)? Assuming COM extraction doesn't work for you...
0 Kudos
MarcusA
Level 3

Thanks Robert - I ended up using COM extraction rather than self-registration and that seems to work ok on rollback. Thanks for the tip.
0 Kudos