java.lang.Objectcom.install4j.api.StartupHandler
public class StartupHandler
If you define a startup handler derived from this class on the "Advanced tasks" tab in the install4j GUI it will be instantiated and queried before the installer and the uninstaller is started. The purpose of this handler is to be able to check the environment and abort the installation before any action is taken or the installer or uninstaller is displayed. Additionally, you can use this handler to shutdown running processes.
| Constructor Summary | |
|---|---|
StartupHandler()
|
|
| Method Summary | |
|---|---|
java.io.File |
getDefaultInstallationDirectory()
This method will be called if prepareInstaller returns true to determine if a different installation directory should be suggested in the installation location screen. |
boolean |
prepareInstaller(InstallerContext context)
This method will be called before the installer is started. |
boolean |
prepareUninstaller(Context context)
This method will be called before the uninstaller is started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartupHandler()
| Method Detail |
|---|
public boolean prepareInstaller(InstallerContext context)
context - the installation context.
public boolean prepareUninstaller(Context context)
context - the uninstallation context.
public java.io.File getDefaultInstallationDirectory()