Skip to main content

命令:--createSuitableInstallation

功能:该命令将创建一个最新的安装 CODESYS 版本,对应指定的类型,并打开指定的项目。

称呼APInstaller.CLI

16. 选项

--types <types>

插件 GUID 和版本元组的 JSON 序列化列表

--typeFile <type file>

包含插件 GUID 的 JSON 序列化列表的文件的完全限定路径

--startArgs <start args>

启动安装时应使用的参数

--channel <channel>

设置频道名称

与以下项互斥 --channelFile

--channelFile <channel file>

包含频道信息的文件的完全限定路径

与以下项互斥 --channel

--installationName <installation name>

安装的名称(如果安装是交互式的,则可选)

--destinationFolder <destination folder>

要安装的安装目录的完整限定路径(交互式安装中可选)

--bit <bit>

描述设置架构的值(32 或 64)

--interactive

如果设置,则可能会打开用户输入对话框。默认情况下,命令会默默执行。

--installReferences

如果设置,则安装所需插件的所有可选和必需引用

--updateMode <update mode>

指示应检索哪种类型的更新: AllNoneSafeUpdateSecurityRelevantSafeSecurityRelevant

--updatePackages

如果设置,则安装兼容更新

--addOnChannel <channel name>

要使用的附加频道。

--setupChannel <channel name>

设置要使用的频道。



5. 示例

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