Custom Code Basics

InstallAnywhere 2017

InstallAnywhere offers an open Application Programming Interface (API) which allows developers to write Java code that can run within InstallAnywhere's architecture. Using the API also gives access to additional functionality in InstallAnywhere, such as its unique Variables and resource loading features. Developers can use the API to create custom actions and GUI elements that seamlessly interact with and extend the InstallAnywhere framework.

All custom code that is going to run within the InstallAnywhere framework must be written in Java. The major forms of custom code are actions, panels, consoles, and rules:

Major Forms of Custom Code

Custom Code


Custom Code Actions

These actions run within InstallAnywhere's action framework, alongside the default InstallAnywhere actions.

Custom Code Panels

These panels run within InstallAnywhere's graphical interface during the installation process. The developer can use this mechanism to add panels to the Installer not provided in InstallAnywhere's default panels.

Custom Code Consoles

These actions run within InstallAnywhere’s console interface during the installation process. Developers can use this mechanism to add custom console elements to the Installer.

Custom Code Rules

These rules are evaluated when the action they are associated with is about to be executed. Custom Code rules need to return a Boolean value defining if the action is to be run.

InstallAnywhere provides sample custom code actions, panels, and console actions. These can be found in the CustomCode folder in the root installation directory of InstallAnywhere. These samples can be used as examples of how to implement InstallAnywhere custom code using the API. Additionally, there is a wide variety of custom code actions and panels located on the InstallAnywhere Web site.

See Also