Skip to main content

Command: --installAddOn

Function: The command installs an add-on in the specified installation.

Call: APInstaller.CLI

Table 25. Options

--location <location>

Required

Fully qualified path to the installation directory

--id <id>

ID (Guid) and/or ID2 (String). Individually or both; separated by a semicolon. Example: "<Guid>;<ID2>"

--version <version>

Required

Version of the add-on (example: "1.0.0.0")

--channel <channel>

Name of the setup channel

Mutually exclusive with --channelFile

--channelFile <channel file>

Fully qualified path to a file containing the channel information.

Mutually exclusive with --channel

--updateMode <update mode>

Indicates which type of updates should be retrieved: All, None, SafeUpdate, SecurityRelevant, SafeSecurityRelevant

--interactive

If set, then dialogs for user input may be displayed. By default, the commands are executed silently.



Example 14. Examples

APInstaller.CLI --installAddOn --location "C:\Program Files\CODESYS 3.5.18.0\CODESYS\AdditionalFolders\Default" --id "test.package.id" --version "1.2.3.4"

APInstaller.CLI --installAddOn --location "C:\Program Files\CODESYS 3.5.18.0\CODESYS\AdditionalFolders\Default" --id "f22b01fc-ccbb-40ba-97f0-35d2648dc17e" --version "1.2.3.4" --channel "Releases" --updateMode="All"