Skip to main content

Command: --createSuitableInstallation

Function: The command creates an installation with the newest CODESYS version, which corresponds to the specified types, and opens the specified project.

Call: APInstaller.CLI

Table 16. Options

--types <types>

A json serialized list of plug-in GUIDs and version tuples

--typeFile <type file>

Fully qualified path to a file containing a json-serialized list of plug-in GUIDs

--startArgs <start args>

Arguments which should be used to start the installation

--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

--installationName <installation name>

Name of the installation (optional if the setup is interactive)

--destinationFolder <destination folder>

Fully qualified path to the installation directory of the installation to be installed (optional in an interactive installation)

--bit <bit>

A value which describes the architecture of the setup (either 32 or 64)

--interactive

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

--installReferences

If set, then all optional and required references of the required plug-ins are installed

--updateMode <update mode>

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

--updatePackages

If set, then compatible updates are installed

--addOnChannel <channel name>

Add-on channel to be used.

--setupChannel <channel name>

Setup channel to be used.



Example 5. Examples

APInstaller.CLI --createSuitableInstallation --types "[{\"Guid\":\"80e2b23c-0232-4b04-8934-1e3d659c7182\",\"Version\":\"1.2.3.4\"}]" --interactive  --destinationFolder "C:\Program Files (x86)\CODESYS"  --installationName TestName --bit 32 --installReferences

APInstaller.CLI --createSuitableInstallation --types "[{\"Guid\":\"80e2b23c-0232-4b04-8934-1e3d659c7182\",\"Version\":\"1.2.3.4\"}]"  --destinationFolder "C:\Program Files (x86)\CODESYS"  --installationName TestName --bit 64               --addOnChannel "Releases" --setupChannel "Local" --updateMode "None" --updatePackages