使用安装程序以静默方式安装软件包

使用 Installation Manager 安装程序以静默方式安装 Installation Manager 和其他产品软件包。

准备工作

要以静默方式安装产品软件包,必须首先安装 Installation Manager。 然后, 创建响应文件

关于本任务

您可以同时静默安装 Installation Manager 和软件包。 (可选) 您可以安装 Installation Manager,然后使用 Installation Manager 以静默方式安装软件包。

过程

以下步骤描述了如何以静默方式安装软件包:

  1. 打开命令行,然后切换到 InstallerImage_platform 目录。
  2. 运行安装命令:
    表 1. 按操作系统和方式列出的安装命令
    平台 管理员 非管理员
    窗户 installc.exe input response_file -log log_file -acceptLicense userinstc.exe input response_file -log log_file -acceptLicense 不可用。
    Linux®, UNIX , IBM iIBM z/OS®和 OS X 操作系统 ./installc input response_file -log log_file -acceptLicense ./userinstc input response_file -log log_file -acceptLicense 不支持。
    有关静默安装命令参数的更多信息,请参阅 Installation Manager 用于静默方式的命令行参数

结果

安装完成时,状态为0已返回。 如果无法完成安装,那么将返回非零数字。
运行 Installation Manager 安装程序时,它将读取响应文件并 (可选) 写入指定目录中的日志文件。 如果指定日志文件和目录,那么如果安装已完成,那么日志文件不包含任何条目。 未完成操作时,日志文件包含错误条目。 已完成安装的日志文件的示例:
<?xml version="1.0" encoding="UTF-8"?>
<result>
</result>

还提供了 Installation Manager 的日志文件。 有关日志目录的缺省位置,请参阅 代理程序数据位置

示例

表 2. 按操作系统和方式列出的安装命令示例
操作系统 管理员 非管理员
窗户 installc.exe input c:\myresponse\responsefile.xml -log c:\mylog\silent_install_log.xml -acceptLicense userinstc.exe input c:\myresponse\responsefile.xml -log c:\mylog\silent_install_log.xml -acceptLicense 不可用。
Linux, UNIX , IBM iz/OS和 OS X 操作系统 ./installc input /root/myresponse/responsefile.xml -log /root/mylog/silent_install_log.xml -acceptLicense ./userinstc input /root/myresponse/responsefile.xml -log /root/mylog/silent_install_log.xml -acceptLicense 不支持。

包含空格的文件路径要用双引号括起。