上一主题: 采用控制台模式安装下一主题: 静默安装程序属性


采用静默模式安装

在使用静默安装程序时,您需要执行以下操作:

  1. 准备一个包含其他安装程序通常提示的信息的属性文件。
  2. 运行静默安装程序,该程序可读取 silentInstaller.properties 中的值。

示例文件 silentInstallerSample.properties 是您的软件存档的一部分。 您可以将它用作正在运行的安装程序属性文件的模板。 或者,您可以使用 GUI 或控制台安装程序执行时生成的 silentInstaller.properties 文件。 静默安装程序属性

遵循这些步骤:

  1. 使用以下方法之一准备 silentInstaller.properties 文件:
  2. 通过输入以下命令来运行安装程序:

    Windows 系统中:

    install.exe –i silent –f <installer_properties_filename_with_full_path>
    

    在 UNIX 上:

    install.bin –i silent –f <installer_properties_filename_with_full_path>
    

    如果静默安装程序运行失败,它将创建文件 silent.install.failed.txt