Installer and Uninstaller Command-Line Arguments

InstallAnywhere 2023 R2

InstallAnywhere installers and uninstallers can be run using the following command-line arguments.

Command-Line Arguments for InstallAnywhere Installers and Uninstallers

Argument

Description

-i

Sets the interface mode (silent/console/gui) for installer and uninstaller as shown below:

c:\myinstall.exe -i silent

c:\myuninstall.exe -i silent

Note:Using -i command-line switch without an argument (interface mode) or with an invalid argument (interface mode) for launching the Installer, results to display a usage message including the appropriate available options on console.

-f

Sets the location of a response file (installer.properties file) for the installe to use. (See Silent Installers and Response Files.)

c:\myinstall.exe -f c:\tmp\installer.properties

Note:In relation with the command-line argument, note the following:

This path can be absolute or relative. (Relative paths are relative to the location of the installer).
Uninstaller does not support the command-line argument for setting location of a response file.

-r

Creates a response file for the installer and uninstaller. (See Generating Response Files)

At the command line, enter <installer_name/uninstaller_name> -r "path_and_file_name"

For example, to create response file for the installer:

c:\myinstall.exe -r c:\temp\myinstaller.properties

In the example above, a response file named myinstaller.properties will be written to the c:\temp directory. If you do not enter a path and file name for the installer’s response file, the file will be named installer.properties or [installername].properties and it will be created in the same directory as the installer.

Note:Response files can be used to provide input for both silent installers and uninstallers.

-D

Sets or modifies variables.

c:\myinstall.exe -Dmyvar=myvalue

Note:Uninstaller does not support the command-line argument for setting or modifying variables.

-l

Uses the specified language code (and optional country code) to set the locale for the installer. (See Language Codes.)

c:\myinstall.exe -l en

sh ./install.bin -l pt_BR

The required language code is a two-character (commonly lowercase) code defined by the ISO-639 standard. InstallAnywhere accepts both old (iw, ji, and in) and new (he, yi, and id) language codes.

The optional country code is a two-character (commonly uppercase) code defined by the ISO-3166 standard.

Note:With reference to the locale options and the command-line argument, note the following:

Locale options are only respected if the installer includes localizations for the locale you specify.
Uninstaller does not support the command-line argument for setting locale and always run with locale set for installer.

-jvmxms

Sets the JVM heap size initial value.

<installer_name> -jvmxms <size>

The default size for these values is measured in bytes. Append the letter k or K to the value to indicate kilobytes, m or M to indicate megabytes, and g or G to indicate gigabytes. For example, to set the initial JVM heap size to 25 megabytes, enter the following:

install.exe -jvmxms 25m

Note:Uninstaller does not support the command-line argument for setting initial value of JVM heap size.

-jvmxmx

Sets the JVM heap size maximum value.

<installer_name> -jvmxmx <size>

The default size for these values is measured in bytes. Append the letter k or K to the value to indicate kilobytes, m or M to indicate megabytes, and g or G to indicate gigabytes. For example, to set the maximum JVM heap size to 50 megabytes, enter the following:

install.exe -jvmxms 50m

Note:Uninstaller does not support the command-line argument for setting maximum value of JVM heap size.

-?

-help

Shows help for the InstallAnywhere installer.

Note:In relation with the command-line argument, note the following:

On Windows, -help works only from the console launcher. Make sure to set the LaunchAnywhere to Console in the Windows area in the Platforms view on the Project page. (For an installed LaunchAnywhere to provide this information, you need to make sure it is explicitly set to Console Launcher on the action.)
Uninstaller does not support the command-line argument for showing uninstaller help.

See Also