How can I abort Installation if any step fails
I have my installer with many steps, and using some available plugins like copy files, InstallSpeedFolder etc.
In my case, installspeedfolder with option "install the folder and folder's contents" is failing with partial copy. Let's assume I have a folder with some subfolders and files in it. It is copying subfolder but not copying files sometimes.
1) How can I get the status of one action in installanywhere
2) how to mark installation as failed and exit, if any action fails
Re: How can I abort Installation if any step fails
Thank you for your post.
1) You could try checking the value of the $INSTALL_SUCCESS$ InstallAnywhere variable. I believe that variable may get updated every time the installer's status changes, which may include action status changes.
2) You could try writing and implementing a custom code action that calls the abortInstallation method off of an InstallerProxy object reference. As long as the $INSTALL_SUCCESS$ variable is updated as I believe it may be, you could try using the variable in a Compare InstallAnywhere Variables Rule on your custom code action, after you have the variable value that you are checking for.
Here is a link to our InstallAnywhere Custom Code Java-Based API: