Prok

Hi

I have a MSI with a Custom Action which may sometimes fail. The problem is that the installation is aborted but not rolled back! The rest of the CAs in InstallExecuteSequence do not get executed but the installed files remain on disk and the application can be seen in Add/Remove Programs.
Rollbacks are *not* disabled via properties or due to low disk space...
Any ideas on how to rollback the install when a custom action fails

Thanks,
Prok

P.S. Sorry if this is the wrong place to post this question...


Re: Architecture General MSI Rollback Custom Actions

Raj15411

Hi,

If you are using Custom Action, you can write throw new InstallException("ERROR_MESSAGE"); This can help to rollback completely.

Thanks
Saravanakumar