錄製回應檔

無聲自動安裝需要有回應檔。您可以下載範例回應檔、手動建立回應檔,或利用 Installation Manager 錄製回應檔。和其他方法不同,錄製回應檔需要安裝 Installation Manager。

開始之前

在安裝之前,檢查使用者需求。Rational® Team 產品需要有管理者存取權。

關於這項作業

您必須在用於安裝的相同平台上錄製回應檔。例如,若要在 Windows® 電腦上安裝,您必須在 Windows 電腦上錄製回應檔。您可以在 Windows XP 上錄製回應檔,然後在另一個支援的 Windows 版本上使用該回應檔。若要在 Linux® 電腦上安裝,您必須在 Linux 電腦上錄製回應檔。

如果您計劃要在多個平台上安裝,則必須在每一個平台上都有回應檔。若要錄製回應檔,您必須在每一個平台上安裝 Installation Manager。例如,在 Windows 平台及 AIX® 平台上安裝 Installation Manager,以便建立適用於 Windows 電腦及 AIX 電腦的回應檔。

解壓縮的檔案含有產品儲存庫。您不需要建立儲存庫。Rational 產品安裝檔及 Rational Enterprise Deployment 中的 Installation Manager 安裝檔,應位於不同的儲存庫。

如果您要所有安裝檔只使用一個儲存庫,或如果您是從 HTTP 伺服器執行安裝,請使用 Packaging Utility 來建立包含所有安裝檔的儲存庫。

Installation Manager 安裝檔位於共用網路磁碟機上,因為安裝 Rational 產品需要存取 Installation Manager 安裝程式。在這個實務中,您不在共用網路磁碟機上安裝 Installation Manager。部份 Rational ClearCase® 及 Rational ClearQuest® 版本未隨附預設回應檔。

程序

  1. 裝載目錄,或將共用磁碟機從共用網路磁碟機對映到管理電腦。選取安裝電腦共用的磁碟機。回應檔會儲存這些儲存庫的磁碟機和目錄位置。

    在之後的步驟中,您會指定位於遠端伺服器上的儲存庫。比方說,如果回應檔將位置儲存為 g:\installation_files\EnterpriseCD-Windows\InstallationManager,但您是在使用 m:\ 磁碟機而非 g:\ 磁碟機作為共用磁碟機的電腦上錄製無聲自動安裝,則安裝作業會找不到 g:\installation_files\EnterpriseCD-Windows\InstallationManager。您可以編輯回應檔來變更磁碟機。

  2. 在管理電腦上安裝 Installation Manager。您可以使用 Installation Manager GUI 來錄製回應檔。
    註: 如果平台沒有 GUI,請參閱「Technote 1373364 在不使用 GUI 的平台上安裝 ClearCase」http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21373364,或「Technote 1373401 在不使用 GUI 的平台上安裝 ClearQuest」http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21373401
  3. 如果 Rational 產品需要管理者存取權來執行安裝,請使用管理者指令來安裝 Installation Manager:
    Windows 系統
    shared_drive:\install_files\install.exe
    Linux 或 UNIX® 系統
    /install_files/install
    註: 在 Windows 上,若是使用 GUI 來進行安裝,請使用 install.exe。請使用 installc.exe 進行無聲自動安裝。其不支援使用 install.exe 進行無聲自動安裝。
    註: 日誌檔位於以下位置:
    • Windows 系統C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager\logs
    • Linux 或 UNIX 系統/var/ibm/InstallationManager/logs
    在 Windows 上,如果不是以管理者身分執行安裝,則日誌檔會儲存在不同的位置。
  4. Installation Manager 安裝完成之後,系統會提示您重新啟動 Installation Manager。請於重新啟動之後關閉 Installation Manager。
  5. 在本端電腦上,開啟命令提示字元,移至位於已安裝的 Installation Manager 目錄中的 Eclipse 目錄:
    • Windows 系統install_dir\Installation Manager\eclipse
    • Linux 或 UNIX 系統/install_dir/InstallationManager/eclipse
    Windows 的預設位置是 C:\Program Files\IBM\Installation Manager\eclipse。Linux 或 UNIX 系統的預設位置是 /opt/IBM/InstallationManager/eclipse/
  6. 請執行指令來錄製 Rational 產品安裝的回應檔。請記住回應檔的名稱及位置,因為之後的步驟需要這項資訊。
    • Windows 系統IBMIM -record c:\response_file\install_clearcase71.xml -skipInstall c:\skipInstall_directory\install_clearcase71
    • Linux 或 UNIX 系統./IBMIM –record /response_file/install_clearcase71.xml -skipInstall skipInstall_dir/install_clearcase71
    其中 install_clearcase71.xml 是要錄製的回應檔,skipInstall_directory\install_clearcase71 則是用來建立 skipInstall 資料夾和檔案的位置。
    註: -skipInstall 選項會錄製回應檔而不安裝 Rational 產品。目錄位置 agentDataLocation 必須是可寫入的目錄。

    當您利用 -skipInstall 來建立回應檔時,您必須保留針對 agentDataLocation 建立的目錄、資料夾和檔案。這可讓您之後可利用 -record 選項來修改回應檔。您也可以手動編輯回應檔。

    您可以指定管理電腦或共用網路磁碟機上的目錄,作為回應檔位置或 agentDataLocation。如果之後要利用 Installation Manager 來修改回應檔,您必須使用相同的目錄位置。

    請驗證您輸入的檔案路徑是否存在。Installation Manager 不會建立回應檔的目錄。

    當您錄製回應檔時,Installation Manager 標題中會顯示文字 (正在錄製...)

    「Installation Manager 資訊中心」含有建立回應檔的最新資訊。如需用來建立回應檔之指令以及可用指令選項的相關資訊,請參閱 http://publib.boulder.ibm.com/infocenter/install/v1r4/index.jsp?topic=/com.ibm.silentinstall12.doc/topics/c_silent_response_files.html

  7. 錄製回應檔之後,請新增 Rational 產品及 Installation Manager 儲存庫位置。
    1. 按一下檔案 > 喜好設定 > 儲存庫
    2. 選取 diskTag.inf 來新增 Rational 產品安裝檔的儲存庫位置。當您將 Rational 產品的安裝檔解壓縮時,即會建立此儲存庫位置。在這個實務中,儲存庫位於共用網路磁碟機上。
      • Windows 系統g:\installation_files\Rational_product\disk1\diskTag.inf,其中 g:\ 會從共用網路磁碟機指向共用磁碟機。
      • Linux 或 UNIX 系統 /installation_files/Rational_product/disk1/diskTag.inf
      註: repository.config 檔案可利用 Packaging Utility 建立,或從安裝檔中取得。如果是修正套件,這個檔案通常位於 install_files\RationalProduct 目錄中。diskTag.inf 檔案會向 Installation Manager 表示檔案來自於磁碟映像檔。diskTag.inf 檔案可以存在於多個磁碟上。您無法使用 Packaging Utility 建立 diskTag.inf 檔,但可以在 Packaging Utility 中選取 diskTag.inf。不能從 HTTP 伺服器使用 diskTag.inf 檔案。修正套件不含 diskTag.inf 檔。
      註: 這個實務不會使用啟動程式。啟動程式只隨附於磁碟映像檔中,且只會使用 diskTag.inf。啟動程式不會使用 repository.config
    3. 設定 Installation Manager 喜好設定。
      註: 部分無聲自動安裝喜好設定只能在回應檔中變更。如需無聲自動安裝喜好設定的相關資訊,請參閱「Installation Manager 資訊中心」,網址為 http://publib.boulder.ibm.com/infocenter/install/v1r4/topic/com.ibm.silentinstall12.doc/topics/r_silent_prefs.html
      • 在「喜好設定」視窗中,選取儲存庫。根據您的環境適當啟用或停用在安裝及更新期間搜尋服務儲存庫。這個選項會在回應檔中儲存為 offering.service.repositories.areUsed
      • 在「喜好設定」視窗中,選取更新項目。根據您的環境適當啟用或停用搜尋 Installation Manager 更新項目。這個選項會在回應檔中儲存為 com.ibm.cic.common.core.preferences.searchForUpdates
    4. 按一下確定
  8. 逐步執行安裝,移入適用於您環境的欄位資料。
  9. 安裝完成之後,請關閉 Installation Manager 以完成錄製。
  10. 如果是在管理電腦而不是共用網路磁碟機上建立回應檔,請將回應檔複製到共用網路磁碟機。您不需要將 agentDataLocation 目錄複製到遠端伺服器。
    註: 您應該在共用網路磁碟機上建立回應檔的專用目錄。例如,若為 Windows,是 c:\installation_files\response_files,若為 Linux 或 UNIX 系統,則是 /installation_files/response_files

意見