使用安装程序静默安装 Installation Manager

您可以使用   IBM® Installation Manager  安装程序来静默安装   Installation Manager

http://pic.dhe.ibm.com/infocenter/install/v1r5/index.jsp?topic=%2Fcom.ibm.silentinstall12.doc%2Ftopics%2Ft_silent_installIM_IMinst.html

开始之前

查看以管理员、非管理员或组方式安装软件包之间的差异,以确定要遵循的方法。 还请确定是指定安装文件夹,还是使用缺省安装文件夹。

关于此任务

Installation Manager 安装程序是命令行实用程序。运行此命令行实用程序以静默安装和卸载 Installation Manager 和其他软件包。

如果未安装 Installation Manager,那么可以使用 Installation Manager 安装程序通过单个命令来安装 Installation Manager 和其他软件包。此样本响应文件提供了安装 Installation Manager 和软件包的示例。如果您安装了 Installation Manager,请参阅使用响应文件静默安装软件包。

从 V1.5.2 开始,您可以使用 -reinstallIM 选项来安装相同版本或更高版本的 Installation Manager。 当 Installation Manager 的当前安装有问题时,请使用该选项。 将 -reinstallIM 选项与以下安装程序命令结合使用:installc、userinstc  groupinstc。 关于使用 -reinstallIM 选项的示例命令,请参阅表 3。关于 -reinstallIM 的更多信息,请参阅 imcl 的命令行参数。

过程

要安装 Installation Manager

  1. 下载 Installation Manager 安装文件,请参阅Installation Manager 相关链接。
  2. 解压缩安装文件。
  3. 创建用于存储安装文件的目录。 示例:
    • Windows:C:\Installation Files\IBM\Installation Manager\1.5
    • Linux 和 UNIX:/opt/InstallationFiles/IBM/InstallationManager/1.5
    • IBM i:/user_home_directory/temp
    • z/OS®:/usr/lpp/InstallationManager/V1R4
  4. 打开命令行并转至您创建的安装文件目录。
  5. 从安装文件目录查看 Installation Manager 的许可证文本:
    • Windows:installation_files_directory\native\agent.license_version.zip\license.txt
    • Linux、UNIX、IBM i 和 z/OS:installation_files_directory/native/agent.license_version.zip/license.txt
  6. 在命令行中运行以下命令之一:
    表 1. 与操作系统和方式对应的静默安装命令
    操作系统 管理员 非管理员
    Windows installc.exe -loglog_file -acceptLicense userinstc.exe -loglog_file -acceptLicense 不可用。
    Linux、UNIX、IBM i 和 z/OS ./installc -loglog_file -acceptLicense ./userinstc -loglog_file -acceptLicense 选项 1:./groupinstc -dataLocationapplication_data_location-log log_file -acceptLicense

    选项 2:./groupinstc -dataLocationapplication_data_locationinput response_file -loglog_file -acceptLicense

    组方式在 IBM i 上不受支持。

    注:
    • 对于组方式,您可以使用上述任一命令进行安装。如果使用第一个选项(而不指定响应文件)来进行安装,那么可以使用其他配置来定制install.xml 文件。例如,可以更改 Installation Manager 安装目录。
    • 如果以组方式在 GUI 平台上进行安装,那么您必须在命令中包含 -dataLocation 选项。

示例

在包含空格的文件路径两边加上引号。

表 2. 与操作系统和方式对应的静默安装命令的示例
操作系统 管理员 非管理员
Windows installc.exe -log c:\mylog\silent_install_log.xml -acceptLicense userinstc.exe -log c:\mylog\silent_install_log.xml -acceptLicense 不可用。
Linux、UNIX、IBM i 和 z/OS ./installc -log /root/mylog/silent_install_log.xml -acceptLicense ./userinstc -log /root/mylog/silent_install_log.xml -acceptLicense 示例 1:./groupinstc -dataLocation/user_home_directory/var/ibm/InstallationManager_Group-log /root/group_logs/grouplogfile.xml -acceptLicense

示例 2:./groupinstc -dataLocation /group_shared_home/appdata input /root/group_response/responsefile.xml -log /root/grouplog/group_install_log.xml -acceptLicense

组方式在 IBM i 上不受支持。

表 3. 与操作系统和方式对应的 -reinstallIM 选项的使用示例
操作系统 管理员 非管理员
Windows installc.exe -reinstallIM -acceptLicense userinstc.exe -reinstallIM -acceptLicense 不可用。
Linux、UNIX、IBM i 和 z/OS ./installc -reinstallIM -acceptLicense ./userinstc -reinstallIM -acceptLicense ./groupinstc -dataLocation/user_home_directory/var/ibm/InstallationManager_Group-reinstallIM -acceptLicense

组方式在 IBM i 上不受支持。

下一步做什么

静默安装   Installation Manager  之后,可使用   Installation Manager    Installation Manager  安装程序来静默安装软件包。

可选:从 Installation Manager 目录查看许可证文本:

  • Windows:installation_directory\license\license.txt
  • Linux、UNIX、IBM i 和 z/OS:installation_directory/license/license.txt

有关以管理员、非管理员或组方式进行安装的信息,请参阅以管理员、非管理员或组的身份进行安装。


你可能感兴趣的:(使用安装程序静默安装 Installation Manager)