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
- :
- How to exit installer in run-time
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
Oct 22, 2013
10:27 AM
How to exit installer in run-time
Hi,
I would like to have conditional statement in my action lists (Pre-Install Tasks) which would interrupt installer without giving user an option to continue it.
Any hints how to implement such functionality ?
I checked default actions list available but haven't found any ideas.
Best regards,
Sebastian
I would like to have conditional statement in my action lists (Pre-Install Tasks) which would interrupt installer without giving user an option to continue it.
Any hints how to implement such functionality ?
I checked default actions list available but haven't found any ideas.
Best regards,
Sebastian
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 23, 2013
04:24 AM
sgurgul wrote:
Hi,
I would like to have conditional statement in my action lists (Pre-Install Tasks) which would interrupt installer without giving user an option to continue it.
Any hints how to implement such functionality ?
I checked default actions list available but haven't found any ideas.
Best regards,
Sebastian
You can write one class like AbortInstallation which extends CustomCodeAction and use the "install" method like following:
public void install( final InstallerProxy ip ) throws InstallException
{
ip.abortInstallation( -1 );
}
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)