回應檔指令 | 說明 |
---|---|
Profile <profile id="the profile (package group) id" installLocation="the install location of the profile"> <data key="key1" value="value1"/> <data key="key2" value="value2"/> </profile> |
設定檔是一個安裝位置。
請利用這個指令來建立套件群組(或安裝位置)。如果指定的套件群組已存在,指令便沒有作用。
目前在建立設定檔時,無聲自動安裝也會建立兩個安裝環境定義;一個用於 Eclipse,一個用於 native。
您可以使用 <data> 元素來指定設定檔內容。 下列清單包含目前支援的索引鍵和相關值:
註: 請以逗點分隔多個 NL 值。
下列清單包含語言碼。並非每一個產品都支援每一種語言:
|
Repositories <server> <repository location="http://example/ repository/"> <repository location="file:/C:/repository/"> <!—add more repositories below--> <…> </server> |
請利用這個指令來指定無聲自動安裝期間所使用的儲存庫。請使用 URL 或 UNC 路徑來指定遠端儲存庫;或使用目錄路徑來指定本地儲存庫。 |
install <install> <offering profile="profile id" features= "feature ids" id= "offering id" version= "offering version" selected="true"></offering> <!—add more offerings below> <…> </install> |
請利用這個指令來指定要安裝的安裝套件。
設定檔 ID 必須符合現有的設定檔,或 set profile 指令所指定的設定檔。 您可以選擇性地利用逗點區隔的清單來指定若干特性 ID,例如 "feature1, feature2" 等。 如果未指定任何特性 ID,便會安裝指定供應項目中的所有預設特性。 註: 即使逗點區隔的清單未明確指定必要的特性,安裝作業也會包含這些特性。
不需要版本號碼。如果沒有指定版本,Installation Manager 會安裝指定 ID 的最新產品以及任何可用的更新項目和修正程式。 'selected' 屬性是選用的。 依預設,'selected' 會設為 "true"。如果 'selected' 設為 "false",無聲自動安裝就不會安裝該套件。在精靈模式下執行時,套件會顯示在「選取套件」頁面中,但一開始並不會選取。 |
Update(精靈模式) <update> <offering profile= "profile id"> </update> |
請利用這個指令來指定會更新的設定檔。設定檔 ID 必須符合現有的設定檔。 註: 這個指令只能用於精靈模式中來呼叫更新精靈;
其在無聲自動模式中沒有作用。
|
Modify(精靈模式) <modify> <offering profile= "profile id"> </modify> |
請利用這個指令來指定會修改的設定檔。設定檔 ID 必須符合現有的設定檔。 註: 這個指令只能用於精靈模式中來呼叫更新精靈;
其在無聲自動模式中沒有作用。
|
Modify <install modify="true"> 或 <uninstall modify="true">(選用屬性) <uninstall modify="true"> <offering profile="profile id" id="Id" version="Version" features="-"/> </uninstall> |
請在 install 或 uninstall 指令上利用 <install modify="true"> 屬性,表示您要修改現有的安裝。 預設值為 false。如果修改作業的目的只是為了安裝其他語言套件,則供應特性 ID 清單中應該使用連字號 "-" 來表示不新增特性。 重要: 如範例所示,您必須對特性清單指定 modify="true" 和連字號 "-";
否則,install 指令會安裝供應項目的預設特性,而 uninstall 指令會移除所有特性。
|
uninstall <uninstall> <offering profile="profile id" features= "feature ids" id= "offering id" version= "offering version"></offering> <!—add more offerings below> <…> </uninstall> |
請利用這個指令來指定要解除安裝的套件。 設定檔 ID 必須符合現有的設定檔,或 profile 指令所指定的設定檔。 此外,如果未指定任何特性 ID,則會解除安裝指定供應項目中的所有特性; 如果未指定任何供應項目 ID,則會解除安裝指定設定檔中所有已安裝的供應項目。 |
Rollback <rollback> <offering profile="profile id" id= "offering id" version= "offering version"> </offering> <!—add more offerings below <…> </rollback> |
請利用這個指令,從目前安裝在指定設定檔上的版本,回復至指定的供應項目。您無法在 roll back 指令中指定特性。 |
installAll <installALL/> 註: 這個指令相當於使用
. |
請利用這個指令來無聲自動搜尋和安裝所有可用的套件。 |
updateAll <updateALL/> 註: 這個指令相當於使用
. |
請利用這個指令來無聲自動搜尋和更新所有可用的套件。 |
License <license policyFile="policy file location"/> 例如:
|
如果產品套件需要已安裝的授權,請利用這個指令,在錄製模式啟動 Installation Manager 之後啟動授權精靈,以產生含有 license 指令的回應檔。 在錄製模式期間,如果您透過授權管理精靈來設定 flex 選項,您設定的選項會錄製在名稱為 "license.opt" 的授權原則檔中(其與產生的回應檔位於相同的目錄),且回應檔會包含參照該原則檔的 license 指令。 |
回應檔屬性 | 說明 |
---|---|
Clean <agent-input clean="true"> </agent-input> |
依預設,clean 屬性會設為 'false'。Installation Manager 將使用回應檔中指定的儲存庫及其他喜好設定,以及 Installation Manager 中設定的現有喜好設定。 如果在回應檔和 Installation Manager 中都指定了同一個喜好設定,會優先使用在回應檔中指定的喜好設定。 如果 clean 屬性設為 'true', Installation Manager 將使用回應檔中指定的儲存庫及其他喜好設定,而且將不會使用 Installation Manager 中設定的現有喜好設定。 |
Temporary <agent-input clean="true" temporary="false"> </agent-input> |
依預設,temporary 屬性會設為 'false',而回應檔中設定的喜好設定則會留存。如果您將 temporary 屬性設為 'true',回應檔中設定的喜好設定將不會留存。 您可以同時使用 temporary 和 clean 屬性。比方說,如果您將 clean 設為 'true',並將 temporary 設為 'false',在執行無聲自動安裝之後,回應檔中指定的儲存庫設定會置換前一個階段作業中使用 Installation Manager 所設定的喜好設定。 |
License agreement acceptance <agent-input acceptLicense="false"> </agent-input> |
依預設,在無聲自動安裝模式下使用 Installation Manager 時,您不同意接受安裝套件所附帶的授權。如果您要安裝的套件有必須接受的授權合約,無聲自動安裝作業將會失敗。若要接受授權合約,您必須將屬性設為 <agent-input acceptLicense="true">。藉由此動作,您將同意接受指定在回應檔中的每一個套件的授權合約。 |
Reboot later <agent-input rebootLater="false"> </agent-input> |
依預設,rebootLater 會設為 'false';如果回應檔安裝的套件需要在 Windows 上重新啟動系統,Installation Manager 會在執行回應檔完成之後重新啟動系統。 如果 rebootLater 設為 'true',則不會重新啟動系統。 |