回應檔指令 | 說明 |
---|---|
set profile <profile id="the profile id" installLocation="the install location of the profile"> <data key="key1" value=”value1”/> <data key="key2" value=”value2”/> </profile> |
請利用這個指令來建立安裝位置。
如果指定的安裝位置已存在,指令便沒有作用。
目前,當建立設定檔時,無聲自動安裝也會建立兩個安裝環境定義;Eclipse 和 native 各一個。
設定檔是一個安裝位置。
您可以使用 <data> 元素來指定設定檔內容。 下列清單包含目前支援的索引鍵及相關的值:
註: 請以逗點分隔多個 NL 值。
下列清單包含目前支援的語言碼:
|
set repositories <server> <repository location="http://xxx/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"></offering> <!—add more offerings below> <…> </install> <install modify="true">(選用屬性) |
請利用這個指令來指定要安裝的安裝套件。
設定檔 ID 必須符合現有的設定檔,或 set profile 指令所指定的設定檔。 您可以選擇性地利用逗點區隔的清單來指定若干特性 ID,例如 "feature1, feature2”等。 如果未指定任何特性 ID,便會安裝指定供應項目中的所有預設特性。 註: 即使逗點區隔的清單未明確指定必要的特性,安裝作業也會包含這些特性。
|
<install modify="true">or <uninstall modify="true">(選用屬性) <uninstall modify="true"> <offering profile="profileID" id="Id" version="Version" features="-"/> </uninstall> |
請在 install 或 uninstall 指令上利用 <install modify="true"> 屬性,表示您要修改現有的安裝。 如果此屬性不設為 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> <offering profile= "profile id" id= "offering id" version= "offering version"> </offering> <!—add more offerings below <…> </rollback> |
請利用這個指令從指定的設定檔上目前安裝的版本回復到指定的供應項目。 您無法在 rollback 指令中指定特性。 |
installAll <installALL/> 註: 這個指令相當於使用
–silent –installAll. |
請利用這個指令來無聲地搜尋和安裝所有可用的可安裝套件。 |
updateAll <updateALL/> 註: 這個指令相當於使用
–silent –updateAll. |
請利用這個指令來無聲地搜尋和更新所有可用的可安裝套件。 |
授權 <license policyFile=“policy file location”/> 例如: <license policyFile=”c:\mylicense.opt”/> |
以記錄模式啟動 Installation Manager 之後,請利用這個指令來啟動授權精靈,產生含有 license 指令的回應檔。
在記錄模式期間,如果您透過授權管理精靈來設定 flex 選項, 則在產生的回應檔所在的目錄中,授權原則檔“license.opt”中會記錄您設定的選項; 回應檔將包含 license 指令來參照原則檔。 |
精靈 <launcher -mode wizard -input < response file > |
請利用這個指令以 UI 模式啟動 Installation Manager。UI 模式會在安裝精靈或解除安裝精靈中啟動 Installation Manager。 但在此情況下,回應檔只能包含 preference 指令和 install 指令,或 preference 指令和 uninstall 指令; 以 UI 模式執行 Installation Manager 時,相同的回應檔中不能混合 install 和 uninstall 指令。 |