Console Installers

InstallAnywhere 2018

Console mode mimics the default GUI steps provided by InstallAnywhere, and uses standard input and output. The biggest advantage to console mode is that UNIX developers no longer need X-windows (X11) to run their installers.

Console mode allows for text to be output to the console line-by-line. It does not allow for any formatting, clearing of the screen, or positioning of the cursor.

+---------------------------------------------------------+

| CHOOSE ALIAS, LINK, SHORTCUT FOLDER                     |

|                                                         |

| Where would you like to create application shortcuts?   |

|                                                         |

| 1) In the Start Menu                                    |

| 2) On the Desktop                                       |

| 3) Don’t create shortcuts                               |

|---------------------------------------------------------|

| Please make a selection [1, 2, or 3], and then          |

| press ENTER.                                            |

|---------------------------------------------------------|

To trigger a console installer from the command line, type the following command:

installername -i console

Behavior of Console Launchers

If an installer is bundled with a console launcher, the behavior of the installer varies depending on how the installer was launched. The following table identifies how the console launcher will behave in each situation (Launch Type).

Behavior of Console Launchers

Default Windows UI Mode

Launch Type

Ctrl Key Pressed

Expected Result

GUI

Double-click

No

There will not be any console sub-window.

GUI

Double-click

Yes

A console sub-window will display.

GUI

Console with switch

No

There will not be any console sub-window.

GUI

Console with switch

Yes

There will not be any console sub-window.

GUI

Console without switch

No

There will not be any console sub-window.

GUI

Console without switch

Yes

There will not be any console sub-window.

Console

Double-click

No

A console window will display.

Console

Double-click

Yes

A console window will display.

Console

Console with switch

No

There will not be any console sub-window.

Console

Console with switch

Yes

There will not be any console sub-window.

Console

Console without switch

No

There will not be any console sub-window

Console

Console without switch

Yes

There will not be any console sub-window.

Silent

Double-click

No

There will not be any console sub-window.

Silent

Double-click

Yes

A console window will display.

Silent

Console with switch

No

There will not be any console sub-window.

Silent

Console with switch

Yes

There will not be any console sub-window.

Silent

Console without switch

No

There will not be any console sub-window.

Silent

Console without switch

Yes

There will not be any console sub-window.

Note the following regarding the information in this table:

Launching the installer by double-clicking, which was built using the console launcher, will now kill the spawned console window immediately after launching the installer. That means that the initial (spanned) console window will display for a fraction of second.
If the installer is built with a console launcher and is launched from the command prompt, the prompt will wait until the launched process is complete before opening a new prompt.
In the above table, the term “switch” means any kind of supported command-line switches, such as -i silent or -i gui.

See Also