錄製回應檔

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

開始之前

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

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

如果您計劃要在多個平台上安裝,則必須在每一個平台上都有回應檔。您可以下載不同平台適用的範例回應檔,然後手動編輯回應檔。如果編輯範例回應檔,則不需要安裝 Installation Manager。您也可以針對不同的平台錄製回應檔。若要錄製回應檔,您必須在每一個平台上安裝 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. 在安裝之前,檢查使用者需求。Rational Team 產品需要有管理者存取權。如需相關資訊,請參閱安裝產品的使用者專用權需求
  2. 裝載目錄,或是將共用磁碟機從網路共用磁碟機對映到管理機器。選取安裝機器共用的磁碟機。回應檔會儲存這些儲存庫的磁碟機和目錄位置。

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

  3. 在管理機器上安裝 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
  4. 如果 Rational 產品需要管理者存取權來執行安裝,請使用管理者指令來安裝 Installation Manager:
    Windows
    shared_drive:\install_files\install.exe
    Linux 或 UNIX 系統
    /install_files/install
    註: 在 Windows 上,若是使用 GUI 來進行安裝,請使用 install.exe。請使用 installc.exe 進行無聲自動安裝。其不支援使用 install.exe 進行無聲自動安裝。
    註: 日誌檔位於以下位置:
    • WindowsC:\Documents and Settings\All Users\Application Data\IBM\Installation Manager\logs
    • Linux 或 UNIX 系統/var/ibm/InstallationManager/logs
    在 Windows 上,如果不是以管理者身分執行安裝,則日誌檔會儲存在不同的位置。
  5. Installation Manager 安裝完成之後,系統會提示您重新啟動 Installation Manager。請於重新啟動之後關閉 Installation Manager。
  6. 在本端機器上,開啟命令提示字元,移至位於已安裝之 Installation Manager 目錄下的 Eclipse 目錄:
    • Windowsinstall_dir\Installation Manager\eclipse
    • Linux 或 UNIX 系統/install_dir/InstallationManager/eclipse
    Windows 的預設位置是 C:\Program Files\IBM\Installation Manager\eclipse。Linux 或 UNIX 系統的預設位置是 /opt/IBM/InstallationManager/eclipse/
  7. 請執行指令來錄製 Rational 產品安裝的回應檔。請記住回應檔的名稱和位置,因為之後的步驟需要這項資訊。
    • WindowsIBMIM -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

  8. 錄製回應檔之後,請新增 Rational 產品及 Installation Manager 儲存庫位置。
    1. 移至檔案 > 喜好設定 > 儲存庫
    2. 選取 diskTag.inf 來新增 Rational 產品安裝檔的儲存庫位置。這個實務中的儲存庫位置位於網路共用磁碟機上。當您將 Rational 產品的安裝檔解壓縮時,即會建立此儲存庫位置。
      • Windowsg:\installation_files\Rational_product\disk1\diskTag.inf,其中 g:\ 是從網路共用磁碟機指向共用磁碟機。
      • Linux 或 UNIX 系統 /installation_files/Rational_product/disk1/diskTag.inf
      註: Notes® repository.configdiskTag.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. 按一下確定
  9. 逐步執行安裝,移入適用於您環境的欄位資料。
  10. 安裝完成之後,關閉 Installation Manager 來完成回應檔的錄製。
  11. 若要無聲自動安裝 Installation Manager,請修改回應檔。
    註: 如果已安裝 Installation Manager,就無法錄製 Installation Manager 的無聲自動回應檔。
    1. 判斷 Installation Manager 的內部版本值。如需相關指示,請參閱「Technote 1393738 ClearCase 和 ClearQuest 內含的 Installation Manager 版本」(http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21393738)。如果您有多組安裝檔,請使用最新的版本。
    2. 開啟回應檔。
    3. 以下列形式新增供應項目索引鍵到安裝指令中:<offering features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.3.0.20090401_1111'/>Version 是 Installation Manager 的內部版本值 im.internal.version。請在 agent_coreagent_jre 之間使用逗點。 例如:
      <install>
      	<offering features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.3.0.20090211_1046'>
      	<offering id='com.ibm.rational.clearcase.platform' version='7.1.0.00-7-1-D081110'/>
      </install>
    註: 您可以無聲自動安裝 Installation Manager 與 Rational 產品,而無需修改回應檔。若要執行此作業,請使用指令來建立批次檔或 Shell Script,以便先執行 Installation Manager 的無聲自動安裝,然後執行 Rational 產品的無聲自動安裝。在 Windows 上,請使用 installc.exe(而不是使用 install.exe)來執行無聲自動安裝。

    範例指令:

    Windows
    install_files_IM\installc --launcher.ini silent-install.ini
    install_files_Rationalproduct\install --launcher.ini silent-install.ini -input <response_file>
    Linux 或 UNIX 系統
    install_files_IM/installc --launcher.ini silent-install.ini
    install_files_Rationalproduct/install --launcher.ini silent-install.ini -input <response_file>
  12. 如果您已在管理機器上建立回應檔,但未在網路共用磁碟機上建立回應檔,您必須將回應檔複製到網路共用磁碟機。您不需要將 agentDataLocation 目錄複製到遠端伺服器。
    註: 您可能要在網路共用磁碟機上建立專用於回應檔的目錄。例如,若為 Windows,是 c:\installation_files\response_files,若為 Linux 或 UNIX 系統,則是 /installation_files/response_files

意見