This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: How to stop installation when an error occurs during the install phase(console mode)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 20, 2009
06:53 AM
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?
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?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 25, 2009
03:08 AM
If anyone has worked on [or know about] the issues mentioned above, please do share it.
Thanks in advance.
-- Bharath --
Thanks in advance.
-- Bharath --
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)