Adding LaunchAnywhere Executable Files to the Install Sequence

InstallAnywhere 2018

A LaunchAnywhere executable file (LAX) is a unique native executable file that InstallAnywhere creates to launch a Java application. You can add as many launchers as you would like.

To add a LaunchAnywhere executable file to your project:

1. In the Advanced Designer, on the Sequence page, click Install. The Install view opens.
2. In the Visual Tree, select the User Install Folder item.
3. Click the Add Launcher button. InstallAnywhere displays a message box asking if you want InstallAnywhere to automatically find classes with main methods.
4. Click OK. The Choose a main class dialog box opens with a class listed.

Note • When you add a launcher, InstallAnywhere automatically inspects the added files (including introspecting into JAR and ZIP files) to find class files with main methods specified.

5. Select one of the listed items as the main class for the application and click OK.

InstallAnywhere adds the launcher to the Visual Tree, and also creates a Shortcut, Link, or Alias action in the Shortcuts’ Destination Folder magic folder. The location varies, depending on what is specified for the Choose Alias, Link, and Shortcut panel in the Pre-Install view.

6. Click the Set Classpath button. A message box opens, asking whether you want to automatically set the classpath.
7. Click OK.

InstallAnywhere adds a blue CP icon on folders and archives that the process has added to the classpath.

Note • To view the classpath as determined by the Set Classpath action: On the Project page, click JVM Settings. On the General Settings tab, review the classpath settings.

Tip • To customize the appearance of the shortcut for the launcher, select the Create LaunchAnywhere for Java Application action in the Visual Tree. The customizer in the bottom area of the view changes to reflect the options for the launcher. Configure its settings as needed.