参考:样本响应文件

可以使用基于 XML 的响应文件来指定预先定义的信息,例如,静默安装首选项、存储库位置和安装概要文件等等。如果小组和公司想要以静默方式对安装软件包进行安装,并想要对安装软件包的位置和首选项进行标准化,则响应文件非常实用。
样本响应文件
<agent-input >

<!-- add preferences -->
<preference name="com.ibm.cic.common.core.preferences. http.proxyEnabled" value="c:/temp"/>

<!-- create the profile if it doesn't exist yet -->
<profile id="my_profile" installLocation="c:/temp/my_profile"></profile>

<server>
<repository location= 
"http://a.site.com/local/products/sample/20060615_1542/repository/"></repository>
/server>

<install>
	<offering profile= "my_profile" features= "core" id= "ies" version= "3.2.0.20060615">
	</offering>
/install>

</agent-input>

其他响应文件属性

还可以定义响应文件的属性:清理方式和许可协议验收。

清理方式属性

可以在响应文件中应用 clean 属性,以便静默安装功能不会在 Installation Manager 用户界面(UI)中保留服务器和首选项设置。如果想要以静默方式运行,请在打开响应文件标记上将以下属性设置为 true
<agent-input clean="true">
如果将 clean 属性设置为 true,则静默安装将不会保留服务器首选项设置;这些设置仅在当前设置中才生效。在静默安装完成之后查看 Installation Manager UI 时,可注意到存储库及其他在响应文件中指定的首选项都显示在“首选项”页上。如果您以清理方式运行静默安装,则不会显示这些设置。
注: 清理方式属性设计为在测试和调试期间使用。

许可证协议验收属性

缺省情况下,在使用 Installation Manager 静默安装方式安装时,您可以同意接受安装软件包所附带的任何许可证。 如果您不想接受许可协议,则可以使用 <agent-input> 元素中的一个附加属性以自动使静默安装操作失败:<agent-input acceptLicense='false">。如果您要安装的安装软件包具有必须接受的许可协议,则静默安装操作将失败。


反馈