MSI Rollback Custom Actions RRS feed

  • Question

  • 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?


    P.S. Sorry if this is the wrong place to post this question...
    Tuesday, July 10, 2007 12:47 PM

All replies

  • Hi,


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



    Monday, September 10, 2007 9:19 AM
  • Hi Saravanakumar.....

    Thanks for this answer............. it helped a lot..............

    Tuesday, September 30, 2008 12:12 PM