Command line-based installation

In general, TwinCAT 3.1 can only be installed "unattended", but not "silently". This means that you can install TwinCAT by script or command line command, but windows will be opened and closed automatically despite that. The installation therefore doesn't proceed "silently".

Command line command for the installation

The complete command line command to install TwinCAT 3.1 is:

TC31-Full-Setup.exe /s /v"/qr ALLUSERS=1"

 

Activation of the TwinCAT XAE Settings

Depending on the installed Visual Studio® version you can activate the TwinCAT settings for a corresponding Visual Studio® version with the following additions (corresponds to an activated check box in the TwinCAT 3.1 – InstallShield Wizard):

ACTIVATEVS2013SETTINGS=1 , if VS2013 is installed

ACTIVATEVS2015SETTINGS=1 , if VS2015 is installed

ACTIVATEVS2017SETTINGS=1 , if VS2017 is installed

ACTIVATEVS2019SETTINGS=1 , if VS2019 is installed

If there is no Visual Studio® (Shell) installed on the system, do not call ACTIVATEVS201xSETTINGS, the Visual Studio® 2013 Shell and all settings will be installed automatically in this case.

Example for Visual Studio® 2015:

TC31-Full-Setup.exe /s /v"/qr ALLUSERS=1 ACTIVATEVS2015SETTINGS=1"

To activate the settings, Visual Studio® 2015 is automatically started with the corresponding call and also closed again.

Suppression of the automatic reboot

The automatic reboot can be suppressed with the following addition.

REBOOT=ReallySuppress

Sample:

TC31-Full-Setup.exe /s /v"/qr REBOOT=ReallySuppress ALLUSERS=1 ACTIVATEVS2015SETTINGS=1"

See also: