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

How to stop installation when an error occurs during the install phase(console mode)

The requirement is to exit the installation prematurely if any error is encountered during the process of installation.

In case if an error is encountered during the "install" phase of installation [i.e. after Pre-install phase],I am using "Show Message Dialog" action with only 'Exit' button and am forcing the user to prematurely 'Exit' the installation. I have added a 'Rule' for this message dialog box by using "$INSTALL_SUCCESS$" variable. This dialog box pops up only when the "$INSTALL_SUCCESS$" does not equal to SUCCESS.

So far so good,its working fine as expected. But this happens only in GUI mode. Here are my questions

1) How can we implement the same behavior for console mode?
2) Like implementing CustomCodeConsoleAction(s) in the Pre-install phase, is it possible to implement CustomCode for Console actions in "install" phase also?
3) If the user prematurely exits the installation, then, is there an option to revert the changes done by the installer[such as removing the file/folder/entries created in the installation directory/registries etc]?

How many of the above three can be achieved using the InstallAnywhere 2008 VP1 Enterprise Edition installer?
Labels (1)
0 Kudos
(1) Reply
Level 3

If anyone has worked on [or know about] the issues mentioned above, please do share it.

Thanks in advance.
-- Bharath --
0 Kudos