Skip to content

Silent installation with the MSI

The MSI Installer can be run from the command line in two ways:

  • Silently (without user input)
  • With the standard wizard interface

In both cases, you can specify non-default values using command-line parameters, as shown in the examples below.

When run in silent mode, the octoplant client MSI installer can also be deployed remotely to install the software on other computers using standard MSI methods.

Go to https://learn.microsoft.com/en-us/windows/win32/msi/command-line-options to find a reference on standard MSI command line options.

Argument Description
/i Installation
/x Uninstallation
/Qn Silent installation with no UI
/L*V Logging into the specified log file path

The msiexec /Qb reduced-UI command-line option is not currently supported and may result in unpredictable results. Please use only the /Qn option for silent installations.

If the MSI is re-run (for example, to install additional features using the ADDLOCAL setting), any APPLICATION_FOLDER value specified on the command line will be ignored. This is because the software cannot be relocated during an upgrade.

To change the installation folder, first uninstall the software (either silently or using the standard user interface), then perform a new installation. If running silently, specify the desired APPLICATION_FOLDER value. If using the installer interface, choose the desired folder during setup.

If you execute the MSI silently from a PowerShell command prompt rather than a standard Windows command prompt, you must use the single back-quote character ` instead of the double-quote “ character to surround paths containing spaces.

Example:

APPLICATION_FOLDER=`C:\Program Files (x86)\AMDT\octoClient`

instead of

APPLICATION_FOLDER=”C:\Program Files (x86)\AMDT\octoClient”

Examples of command line execution

In this example, octoplant is only installed for the logged-in user. The program files are located in %USERPROFILE%\AppData\Local\Apps\AMDT\octoClient. The client archive directory is %USERPROFILE%\octoplant\ClientArchive.

msiexec /i octoplantClient.msi /Qn /L*V "C:\temp\ocs.log" APPLICATIONFOLDER="%USERPROFILE%\AppData\Local\Apps\AMDT\octoClient" TARGET_CLIENT_ARCHIVE="%USERPROFILE%\octoplant\ClientArchive" REMOVE_OLD=1 ADDLOCAL=UserClient,AdminClient,EasyClient,ReportClient,LibraryManagement,MSVCR71Library

If upgrading from a previous version of octoplant or versiondog, you can use the optional REMOVE_OLD=1 setting to automatically remove the old version after successfully installing the new one. However, this does not apply if multiple versions or instances are installed. By default (REMOVE_OLD=0), the old version remains installed in its original location, with its shortcuts still available on the Desktop and in the Start Menu.

To specify which octoplant features to install, use the optional ADDLOCAL setting. This corresponds to the six feature options available in the installer's user interface. By default, the first four options are installed.

  • To install all six options, use ADDLOCAL=All.
  • To install specific features, provide a comma-separated list, e.g. ADDLOCAL=UserClient,EasyClient to install only those two.

Uninstalling the clients installed by the MSI:

msiexec /x octoplantClient.msi /Qn /L*V "C:\temp\ocu.log"