Installer and Uninstaller Command-Line Arguments
InstallAnywhere 2024 R2
InstallAnywhere installers and uninstallers can be run using the following command-line arguments.
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 installer to use. (See Silent Installers and Response Files.) c:\myinstall.exe -f c:\tmp\installer.properties Note:Consider the following while using the command-line argument:
|
||||||
-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:Consider the following while using the command-line argument:
|
||||||
-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:Consider the following while using the command-line argument:
|
||||||
-tempdir |
Sets the temp directory path. At the command line, enter <installer_name/uninstaller_name> -tempdir "Path" You can set a required temp directory path by utilizing the -tempdir argument with the installer or uninstaller name as shown above. For instance, to set the temp directory path to C:\ExampleTemp for the installer, where the InstallAnywhere launchers are required to be extracted, enter the following at the command line: install.exe -tempdir "C:\ExampleTemp" Note:If the specified directory path is not accessible or is not a valid path, then the default temp directory path will be utilized by the InstallAnywhere installer/uninstaller. |
See Also
Using Command-Line Arguments with Installers and Uninstallers