Skip to main content

Installation command line parameters

The AVIX installation program is currently built using InnoSetup, which allows a number of command line parameters to be used. All allowed parameters are documented in the section "Other Information/Setup Command Line Parameters" in the InnoSetup online documentation - www.jrsoftware.org

Some of the most popular flags are:

/SP- Disables the the This will install... Do you wish to continue?  prompt at the beginning of Setup. Of course, this will have no effect if the DisableStartupPrompt [Setup] section directive was set to yes.
/SILENT Instructs Setup to be silent or very silent. When Setup is silent
/VERYSILENT the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above). If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? message box. If it's very silent it will reboot without asking.
/SUPPRESSMSGBOXES Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'. The default response in situations where there's a choice is:

  • Yes in a 'Keep newer file?' situation.
  • No in a 'File exists, confirm overwrite.' situation.
  • Abort in Abort/Retry situations.
  • Cancel in Retry/Cancel situations.
  • Yes (=continue) in a DiskSpaceWarning/DirExists/ DirDoesntExist/NoUninstallWarning/ExitSetupMessage/ ConfirmUninstall situation.
  • Yes (=restart) in a FinishedRestartMessage/ UninstalledAndNeedsRestart situation.
5 message boxes are not suppressible:

  • The About Setup message box.
  • The Exit Setup? message box.
  • The FileNotInDir2 message box displayed when Setup requires a new disk to be inserted and the disk was not found.
  • Any (error) message box displayed before Setup (or Uninstall) could read the command line parameters.
  • Any message box displayed by [Code] support function MsgBox.
/NOCANCEL Prevents the user from cancelling during the installation process, by disabling the Cancel button and ignoring clicks on the close button. Useful along with '/SILENT' or '/VERYSILENT'.
/DIR="x:\dirname" Overrides the default directory name displayed on the Select Destination Location wizard page. A fully qualified pathname must be specified. May include an "expand:" prefix which instructs Setup to expand any constants in the name. For example: '/DIR=expand:{pf}\My Program'.
/GROUP="folder name" Overrides the default folder name displayed on the Select Start Menu Folder wizard page. May include an "expand:" prefix, see '/DIR='.
/NOICONS Instructs Setup to initially check the Don't create a Start Menu folder check box on the Select Start Menu Folder wizard page.
/COMPONENTS="comma separated list of component names"

[Since AVIX 5.1.10]

Controls which optional components to install.

Startmerthod ComponentsOnly one can be active. 
startmethod\exeDefault start method. Will be active if no startmethod component is provided
startmethod\batChanges start method to be AVIX.bat in the root of the installation folder.

Example:

/COMPONENTS="startmethod\bat"

EXAMPLES

Example 1:
Install AVIX in the default folder without any dialogs (UAC-dialog may still appear if not run with elevated privilegies)

"AVIX v4.7.0 20170518-1.exe" /VERYSILENT

Example 2:
Install AVIX in a spefified folder without any dialogs (UAC-dialog may still appear if not run with elevated privilegies). In this case a subfolder of the folder specified by the system variable PROGRAMDATA is used to avoid problems with access restrictions that Windows enforce in the program folder tree.

"AVIX v4.7.0 20170518-1.exe" /VERYSILENT /DIR=”%PROGRAMDATA%/Solme AB/AVIX”

Example 3:
Install AVIX in a specified folder without any dialogs and copy in a custom preference file (UAC-dialog may still appear if not run with elevated privilegies depending on the destination folder)

"AVIX v4.7.0 20170518-1.exe" /VERYSILENT /DIR=”%PROGRAMDATA%/Solme AB/avix
copy "Z:\AVIX\defaultpreferences\se.solme.avix.prefs"
"%PROGRAMDATA%/Solme AB/avix/configuration"