Skip to main content

Command: --installPackages

Function: The command installs the specified package into the specified installation.

Call: APInstaller.GUI

Table 38. Options

--packages <packages>

json formatted list of packages to be installed. Mutually exclusive with --packageFile One of the options --packages, --packageFile, or --packageFilePath must be set.

--packageFile <package file>

Path to a file containing the json formatted list of packages to be installed. Mutually exclusive with --packages. One of the options --packages, --packageFile, or --packageFilePath must be set.

--location <location>

Required

Root directory of the installation where the package to be installed

--packageFilePath <package file path>

Path to the *.package file to be installed. If set, then --packages and --packageFile are ignored. One of the options --packages, --packageFile, or --packageFilePath must be set.

--channel <channel>

Channel where the packages are searched. Default setting: The setup channel configured in the installer settings.

--startArgs <start args>

Arguments to start the installation after the package installation has been completed.

If this option is omitted, then the installation will not start.



Example 27. Examples

APInstaller.GUI --installPackages --location "C:\Program Files\CODESYS 3.5.18.0\CODESYS\AdditionalFolders\Default"         --packages "[{\"Key\":{\"Id2\":\"CODESYS.SFC\",\"Id\":\"39c4804e-d000-4f42-8774-cba1c1401aea\"},\"Version\":\"4.1.0.0\"}]"   --channel "Releases" --startArgs "--project \"C:\Temp\test.project\""