Installer - Custom code |
|
|
In the [Custom code] section you can specify the location of your custom code
for extensions that use the install4j API.
The following custom code location types are available:
All classes used by your custom code have to be included in these locations (except for Java runtime classes and install4j framework classes). The control buttons allow you to modify the contents of the list of custom code locations:
After you have chosen your custom code locations, the chooser buttons for the custom
action classes (in the Custom actions section) and for the custom screen
classes (the |
|
You can perform custom actions before and after the installation as well as
before and after the uninstallation. When custom actions are actually run depends on the media file type:
An install action is a Java class derived from com.install4j.api.InstallAction, an uninstall action must be derived from com.install4j.api.UninstallAction. Further help on writing custom actions is available in the API description. Custom actions and all classes used by them that are not provided by the Java runtime must be available in the custom code locations defined in the Custom code section on this tab. To easily select a custom action, you can use the [...] chooser buttons next to the text fields. A custom class selector will be brought up that shows all appropriate classes present in the custom jar file. If you expect a class to be shown and it is not there, please check whether your custom code is set up correctly and whether your class extends the correct class. Note: Please check the Hello World demo project for examples of custom actions. |