Defining Build Targets

InstallAnywhere 2020 SP2

Build targets specify the different installers that InstallAnywhere will build for your project. To define the build targets for your project, use the Build Configurations tab in the Build Installers view on the Build page.

To define a build target:

1. In the Advanced Designer, on the Build page, click Build Installers. The Build Installers view opens.
2. Click the Build Configurations tab.
3. In the Select Build Configuration list, select the build configuration whose build targets you want to define.
4. Click the Build Targets subtab.
5. Optionally, to add a new build target, click the Add Build Target button. InstallAnywhere adds a new row to the Customize Build Targets list; it contains default information for a new build target.
6. In the Customize Build Targets list, click the plus sign in the row of the new or existing build target that you want to configure. Configure the build target’s settings as needed.

For detailed information on the build target settings, see Build Targets Subtab.

Requirements for UNIX-Based Platforms

The following are required on UNIX-based platforms:

Unzip tool—It is mandatory that all UNIX-based platforms have a valid unzip command/tool installed and be made available on PATH in order to support extraction of installers /jre for the installers to launch. If it is not present, the JVM search settings configured in the InstallAnywhere project will not be respected. For more information, see Unzip Tool Requirement.
wget tool— If the user chooses to download a JVM on a UNIX-based platform, a wget tool is required.
tar, gzip, and unzip tools—For extracting the downloaded JVM on UNIX-based platforms, the tar, gzip, and unzip tools are required.
md5sum tool—For MD5 checksum verification of a downloaded JVM on UNIX-based platforms, the md5sum tool is required.

Unzip Tool Requirement

When running an installer (with a Linux or Solaris build target) on Linux or Solaris, a valid copy of the system unzip command is required for the installer to launch.

If the unzip tool is not present, you need to install the unzip command by either downloading it from http://info-zip.org/ or by running the apt-get update or apt-get install commands.

InstallAnywhere scripts are written to look for a valid unzip command to be present on UNIX-based platforms. Once the unzip command is installed, it has to be made part of the PATH variable to be available. The InstallAnywhere installer scripts look for the unzip command in the following locations:

/usr/bin

/usr/sbin

/usr/local/bin

[directory defined by the PATH variable]

If the unzip command is not found in any of those locations, then installers fail to launch.

Creating an Installer for a Customized Flavor of UNIX

Some values in the Platform Type list of the platform customizers—UNIX_with_VM, Unix (All), and Other Java-Enabled Platforms—function as customizable platforms that do not map to a specific OS.

To create an installer for a flavor of UNIX that is not in the list of platforms:

1. In the Advanced Designer, on the Build page, click Build Installers. The Build Installers view opens.
2. Click the Build Configurations tab.
3. In the Select Build Configuration list, select the build configuration whose build targets you want to define.
4. Click the Build Targets subtab.
5. In the Customize Build Targets list, click the plus sign next to UNIX_with_VM. The customizer for UNIX_with_VM opens.
6. In the Target Name/Output Folder setting, enter the name of the specific UNIX platform for which you want to build.

Tip:You can use this setting to differentiate between two variations of the same platform target.

7. In the VM Search Instructions area, select the With VM check box and select a VM from the VM to Bundle with Installer list.
8. Configure other settings as needed.

For detailed information on the build target settings, see Build Targets Subtab.

See Also