![]()
|
InstallShield MultiPlatform 11.5
The following command-line options, listed alphabetically, can be used when running an installation or uninstallation. You can use these options whether you invoke the wizard directly through a Java command, or execute it using an installation launcherthe launcher passes these arguments to the wizard. When you execute the wizard using an installation launcher, additional command-line options are available (see Using Installation and Uninstallation Launcher Command-Line Options).
NOTE
To add a classpath to the JAR file at run time, type the following:
java -cp additionalClass setup.jar run
Where additionalClass is the file name of the class that you want to add to setup.jar when it executes (for example, myLib.zip). To add more than one classpath, separate each with a semicolon (";") if you are developing on Windows, separate each with a colon (":") if you are developing on UNIX. Do not include any spaces between each classpath.
| Option |
Purpose |
Example Usage(s) |
|---|---|---|
| -awt |
Specifies to use the AWT interface mode when displaying the dialogs. This option only applies to 5.x project types; in other project types, it has no effect. |
./setup.bin -awt |
|
-condenser |
Enables you to launch a project that can be condensed in condenser mode. You can specify which locales and platforms to include, include/exclude specific features, and specify the type of output. Both defined and custom platforms and locales can be specified. For additional information about this option, see Using Condenser Command-Line Options. |
The example below defines the following:
The !! extended information indicator is optional if the platform does not contain any Extended Info.
java -cp setup.jar run |
|
-console |
Specifies to use the console interface mode, where messages during installation appear on the Java console, and the wizard is run in console mode. This option overrides the Distributions' Show Console property if it is "False" and automatically includes the |
java -cp setup.jar run -console setupwin32Console.exe -console |
|
-G global |
Enables you to set a global wizard property in a command line or response/options file. |
java -cp setup.jar run -G replaceExistingResponse="yesToAll" |
| -goto beanID |
Forces the wizard to jump or "go to" the specified bean upon startup. |
java -cp setup.jar run -goto bean45 |
|
-log #! |
Initializes logging for the wizard. The parameters for this option have the following definitions:
In most UNIX shells, the semicolon character (";") has a specific meaning to the OS, and results in an error when used in a command line. This problem can be avoided if the option is surrounded by single quotes (') or another escape character. |
java -cp setup.jar -log #! |
| -media #=location |
For an installation that requires multiple media, this option specifies the particular media number and location, where # represents the media number and location represents the path to or mounting point of that piece of media. Multiple location parameters can also be specified. Multiple instances of this command-line option would be required if a silent installation involved multiple mediathe response/options file would contain one or more instances of this option to indicate the location of each piece of media.
This option only works with the installation JAR fileit does not work with installation launcher distributions. |
java -cp setup.jar run -media 1=D:/ 2=E:/./ setup.jar -media 1=/usr/mount1 2=/usr/mount2 |
|
-options-record response |
Specifies that automatically generate a record-type response/options file should be generated automatically for the project after the completion of the installation or uninstallation. |
There is no space between -options and -record.
java -cp setup.jar run -options |
|
-options-template response |
Specifies that a response/options options-type file should be generated automatically for the project now that can be used to provide user input during an installation or uninstallation. |
There is no space between -options and -template. java -cp setup.jar run -options-template templateFile.txt |
|
-options response |
Specifies that a response/options file should be used to execute the installation or uninstallation that contains command-line options, one command per line, that set specified properties for the installation or uninstallation.
A response/options file is usually used when a silent installation is run (see the next option). |
java -cp setup.jar run -options /opt/projects/responseFile |
|
-P product |
Specifies properties for a product bean. The Bean ID property of the product bean is specified first, followed by the property and optional subproperty, followed by the new value for the property or subproperty. This option can be specified multiple times, and can be used in Universal Installer and Universal Static Suite projects. |
java -cp setup.jar run -P bean56.displayName |
|
-searchpath paths |
Specifies additional paths to search for assembly data files (assembly.dat), which are then added to the classpath so that the referenced assemblies can be found at run time. As a result, you can provide assemblies manually in a command line. If any path could include a space(s), enclose the entire path list in double-quotes, as illustrated in this example. |
java cp setup.jar searchpath "X:/Shared/Assemblies; |
|
-SP subinstaller |
Specifies properties for a product bean within a Universal Dynamic Suite where subinstallerArchive |
java run -SP "assemblies/056d238eeab8af865a18de5b5ab4c72e/1.00.000/assembly.dat" |
| -silent |
Specifies to install or uninstall the product in silent mode, where the installation or uninstallation is performed with no end-user interaction. This option automatically includes the Java -is:silent option, which only prevents the appearance of the Launcher UI. Using
The -silent option basically renders all of the dialog logic uselessonly the execute() method is called during a silent installation. |
java -cp setup.jar run -silent |
|
-SW subinstaller |
Specifies properties for a wizard bean within a Universal Dynamic Suite where subinstallerArchive |
java run -SW "assemblies/056d238eeab8af865a18de5b5ab4c72e/1.00.000/assembly.dat" |
| -swing |
Specifies to use the Java Swing interface mode when displaying the dialogs. This option only applies if the project was built with Swing enabled; otherwise, it has no effect. |
setup.exe -swing./setup.bin |
|
-V Variable |
Sets the value of a variable property, for example, in a control in a dialog, the exit code or output of Execute Process Actions, etc. |
java -cp setup.jar run -V myTextFieldVariable="yes" |
|
-vpd path |
Sets the location of the VPD registry on the target machine. A relative or absolute path can be specified. If the path contains a space(s), enclose it within double-quotes. The specified path is appended to the platform-specific location. |
java -cp setup.jar run -vpd |
|
-W beanID |
Specifies properties for a wizard bean. The Bean ID property is specified first, followed by the property and optional subproperty, followed by the new value for that property or subproperty. This option can be specified multiple times in one command. |
java -cp setup.jar run -W bean2.contentType=text
When setting a password, the hashed password must be used. For example:
-W passwordDialog |
See Also
Performing a Command-Line Build
Using Installation and Uninstallation Launcher Command-Line Options
Using Java Command-Line Options
|
|
copyright contact |