Skip to main content

命令:--createSuitableInstallation

函数: 该命令使用最新的版本创建安装 CODESYS 版本,它对应于指定类型,并打开指定的项目。

打电话: APInstaller.CLI

16. 选项

--types <types>

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

--typeFile <type file>

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

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