參照:範例回應檔

您可以利用 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 使用者介面時,請注意,回應檔所指定的儲存庫和其他喜好設定會顯示在「喜好設定」頁面中。 如果您執行全新模式的無聲自動安裝,這些設定便不會出現。
註: 全新模式屬性是為了在測試和除錯期間使用而設計的。

授權合約接受屬性

依預設,當在無聲自動安裝模式中使用 Installation Manager 時,您會同意接受安裝套件所檢附的任何授權。 如果您不要接受授權合約,您可以在 <agent-input> 元素中使用一個附加的屬性,使無聲自動安裝作業自動失敗,<agent-input acceptLicense='false">。 如果您要安裝的安裝套件有必須接受的授權合約,無聲自動安裝失敗會失敗。


意見