Skip to main content

命令:--createFixedInstallation

功能:该命令创建一个与指定版本和插件完全对应的固定安装,并且不检查更新。

称呼APInstaller.CLI

13. 选项

--version <version>

必需的

指定安装供应商可解析的安装版本。示例:“CODESYS 64 3.5.18.1”或“CODESYS 3.5.18.1”(适用于 32 位)。

--channel <channel>

设置频道名称

默认值:安装程序设置中配置的安装渠道

与以下项互斥 --channelFile

--channelFile <channel file>

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

与以下项互斥 --channel

--plugins <plugins>

插件 GUID 和版本元组的 JSON 序列化、逗号分隔列表

--pluginFile <plugin file>

包含插件 GUID 和版本元组的 json 序列化列表的文件的完全限定路径

--destinationFolder <destination folder>

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

--installationName <installation name>

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

--startArgs <start args>

启动安装时应使用的参数

--bit <bit>

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

--interactive

如果设置,则可以打开用户输入对话框。

默认情况下,命令是静默执行的。

--installReferences

如果设置,则安装指定插件的所有引用

--updateMode <update mode>

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

--updatePackages

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

--packageFile <package file path>

包含要安装的软件包的 JSON 格式列表的文件路径

与以下项互斥 --packages

--packages <json formatted list>

要安装的软件包的 json 格式列表

与以下项互斥 --packageFile

--addOnChannel <channel name>

要使用的附加渠道的名称。

覆写 --channel 如果设置了的话。

--setupChannel <channel name>

要使用的设置通道的名称。

覆写 --channel 如果设置了的话。



2. 示例

APInstaller.CLI --createFixedInstallation --version "CODESYS 64 3.5.18.0" --interactive --plugins "[]" --channel "Releases"

APInstaller.CLI --createFixedInstallation --version "CODESYS 64 3.5.18.0" --interactive  --plugins "[{\"Guid\":\"2b7e9a81-f3f3-4ad2-96d5-35d1af40c03c\",\"Version\":\"1.2.3.4\"}]"

APInstaller.CLI --createFixedInstallation --version "CODESYS 64 3.5.18.0" --pluginFile "C:\Temp\plugins.json"  --destinationFolder "C:\Program Files\CODESYS 64 3.5.18.0" --installReferences

APInstaller.CLI --createFixedInstallation --version "CODESYS 64 3.5.18.0" --interactive --plugins "[]" --updatePackages     --addOnChannel "Releases" --setupChannel "Local" --updateMode="None"

APInstaller.CLI.exe --createFixedInstallation --version="CODESYS V3.5 SP19"  --packages "[{\"Key\":{\"Id2\":null,\"Id\":\"D1BA94E0-9823-4A49-9CE6-7B424A652307\"},\"Version":\"4.3.0.0\"}]" --channel "Releases" --interactive --updateMode="All"

APInstaller.CLI.exe --createFixedInstallation --version "CODESYS V3.5 SP19" --packages "[{\"Key\":{\"Id2\":null,\"Id\":\"D1BA94E0-9823-4A49-9CE6-7B424A652307\"},\"Version\":\"4.3.0.0\"}]" --channel "Releases" --interactive --updateMode="All"