cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sgurgul
Level 2

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
Labels (1)
0 Kudos
(1) Reply
anilsharma
Level 4

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 );
}
0 Kudos