Installer and Uninstaller Command-Line Arguments

InstallAnywhere 2013

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

Command-Line Arguments for InstallAnywhere Installers

Argument

Description

-i

Sets the installer interface mode: silent/console/gui.

c:\myinstall.exe -i silent

sh ./install.bin -i console

-f

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

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

Note: This path can be absolute or relative. (Relative paths are relative to the location of the installer.)

-r

Creates a response file. (See Generating Response Files.)

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 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 silent installers.

-D

Passes custom command-line arguments.

c:\myinstall.exe -Dmyvar=myvalue

-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: Locale options are only respected if the installer includes localizations for the locale you specify.

-?

-help

Shows help for the InstallAnywhere installer.

Note: 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.)

See Also