Installation of Coco without user interaction

Microsoft Windows

Running the installer from a script

The Coco installer for Windows supports the following command line options:

  • /S: runs the installer in silent mode.
  • /D: specifies the installation directory.

For example, to install Coco from a script, do:

$ SquishCocoSetup.exe /S

To install Coco from a script in the directory c:\Program Files\squishcoco, do:

$ SquishCocoSetup.exe /S "/D=c:\Program Files\squishcoco"

Installation of a licence from the command line

Once Coco installed, it is possible to activate a license from the command line with cocolic.

For example, to check whether valid node-locked license exists and fetch it if needed, use the following command (where KEY stands for the license key):

$ %SQUISHCOCO%\cocolic.exe --check || %SQUISHCOCO%\cocolic.exe --fetch-license-key=KEY

Or to activate a license server:

$ %SQUISHCOCO%\cocolic.exe --license-server=myserver.loc:49344

For the license server, it is also possible to specify the licence server for all users on a machine. Create the file %windir%\system32\drivers\etc\squishcoco-3-licserver and set the IP address and the port of the server. Here myserver.loc:49344.

Installation of toolchain support with the Build Environment Selector

The Build Environment Selector is a graphical tool to generate the support for Cygwin, MinGW, and for some embedded toolchains. It can also be used in a batch file to script an installation.

For example, to install Cygwin support, the following command can be used:

$ %SQUISHCOCO%\toolselector.exe --tool="CygWin - www.cygwin.com" --install --directory=c:\cygwin

The program then generates wrapper and configuration files for the Cygwin compilation programs. To uninstall them, the flag --install must be replaced with --uninstall:

$ %SQUISHCOCO%\toolselector.exe --tool="CygWin - www.cygwin.com" --uninstall --directory=c:\cygwin

The name of the toolchain (here CygWin - www.cygwin.com) is the toolchain name listed when starting the Build Environment Selector (%SQUISHCOCO%\toolselector.exe) without any arguments.

Linux

Running the installer from a script

The Coco installer for Linux™supports the following command line options:

  • –- --install <path>: install Coco on the directory <path>.
  • –- --uninstall <path>: uninstall Coco from the directory <path>.

To install Coco from a script in the directory /opt/SquishCoco as root, do:

$ sudo ./SquishCocoSetup.run -- --install /opt/SquishCoco

Installation of a licence from the command line

Once Coco installed, it is possible to activate a license from the command line with cocolic.

For example, to check whether valid node-locked license exists and fetch it if needed, use the following command (where KEY stands for the license key):

$ cocolic --check || cocolic --fetch-license-key=KEY

Or to activate a license server:

$ cocolic --license-server=myserver.loc:49344

For the license server, it is also possible to specify the licence server for all users on a machine. Create the file /etc/squishcoco-3-licserver and set the IP address and the port of the server. Here myserver.loc:49344.

Coco v7.2.0 ©2024 The Qt Company Ltd.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.