SteveA
Posts: 22
Joined: Fri Jan 30, 2009 2:36 am

Aborting the Installation

I'm running Advanced Installer Professional version 6.9.1. I have a .exe that runs as a custom action at the beginning of the Commit phase and which may determine that the installation should be aborted. How can this .exe signal the package to stop the install and, hopefully, undo what has been done?

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Aborting the Installation

Hi,

Unfortunately an EXE custom action can return only 0 for success and any other value for failure. If it returns a non-zero value, the installation will fail with an error message. However, you can try using a C++ DLL which returns the value 1602. This way the installation will be aborted gracefully.

Please note that the Commit phase is executed after the install is complete. Therefore, if a commit custom action fails the installation cannot be rolled back.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”