無聲自動安裝需要有回應檔。您可以下載範例回應檔、手動建立回應檔,或利用 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® 版本未隨附預設回應檔。
程序
- 安裝之前先檢查使用者需求。Rational Team 產品需要有管理者存取權。
- 裝載目錄,或是將共用磁碟機從網路共用磁碟機對映到管理機器。選取安裝機器共用的磁碟機。回應檔會儲存這些儲存庫的磁碟機和目錄位置。
在之後的步驟中,您會指定位於遠端伺服器的儲存庫。請注意,如果回應檔將位置儲存為 g:\installation_files\EnterpriseCD-Windows\InstallationManager(舉例來說),而您要在使用 m:\ 磁碟機而非 g:\ 磁碟機作為共用磁碟機的機器上錄製無聲自動安裝,安裝作業會找不到 g:\installation_files\EnterpriseCD-Windows\InstallationManager。您也可以編輯回應檔來變更磁碟機。
- 在管理機器上安裝 Installation Manager。您可以使用 Installation Manager GUI 來錄製回應檔。
- 如果 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 上,如果不是以管理者身分執行安裝,則日誌檔會儲存在不同的位置。
- Installation Manager 安裝完成之後,系統會提示您重新啟動 Installation Manager。請於重新啟動之後關閉 Installation Manager。
- 在本端機器上,開啟命令提示字元,移至位於已安裝之 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/。
- 請執行指令來錄製 Rational 產品安裝的回應檔。請記住回應檔的名稱和位置,因為之後的步驟需要這項資訊。
- Windows:IBMIM -record c:\response_file\install_clearcase80.xml -skipInstall c:\skipInstall_directory\install_clearcase80
- Linux 或 UNIX 系統:./IBMIM –record /response_file/install_clearcase80.xml -skipInstall skipInstall_dir/install_clearcase80
其中 install_clearcase80.xml 是要錄製的回應檔,skipInstall_directory\install_clearcase80 則是用來建立 skipInstall 資料夾和檔案的位置。
- 錄製回應檔之後,請新增 Rational 產品及 Installation Manager 儲存庫位置。
- 移至檔案 > 喜好設定 > 儲存庫。
- 選取 diskTag.inf 來新增 Rational 產品安裝檔的儲存庫位置。這個實務中的儲存庫位置位於網路共用磁碟機上。當您將 Rational 產品的安裝檔解壓縮時,即會建立此儲存庫位置。
- Windows:g:\installation_files\Rational_product\disk1\diskTag.inf,其中 g:\ 是從網路共用磁碟機指向共用磁碟機。
- Linux 或 UNIX 系統:/installation_files/Rational_product/disk1/diskTag.inf
註: Notes® repository.config 和 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。
- 設定喜好設定。
- 在「喜好設定」視窗中,選取儲存庫。根據您的環境,啟用或停用在安裝及更新期間搜尋服務儲存庫。這個選項會在回應檔中儲存為 offering.service.repositories.areUsed。
- 在「喜好設定」視窗中,選取更新項目。根據您的環境,啟用或停用搜尋 Installation Manager 更新項目。這個選項會在回應檔中儲存為 com.ibm.cic.common.core.preferences.searchForUpdates。
- 按一下確定。
- 逐步執行安裝,移入適用於您環境的欄位資料。
- 安裝完成之後,關閉 Installation Manager 來完成回應檔的錄製。
- 若要無聲自動安裝 Installation Manager,請修改回應檔。
註: 如果已安裝 Installation Manager,就無法錄製 Installation Manager 的無聲自動回應檔。
- 判斷 Installation Manager 的內部版本值。如需相關指示,請參閱「Technote 1393738 ClearCase 和 ClearQuest 內含的 Installation Manager 版本」(http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21393738)。如果您有多組安裝檔,請使用最新的版本。
- 開啟回應檔
- 使用下列格式將供應項目索引鍵新增至安裝指令中:<offering features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.4.4000.20110525_1254'/>. Version 是 Installation Manager 的內部版本值 im.internal.version。請在 agent_core 和 agent_jre 之間使用逗點。 例如:
<install> <offering features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.4.4000.20110525_1254'> <offering id='com.ibm.rational.clearcase.platform' version='8.0.0.00-8-0-D081110'/> </install>
註: 您可以無聲自動安裝 Installation Manager 與 Rational 產品,而無需修改回應檔。若要執行此作業,請使用指令來建立批次檔或 Shell Script,以便先執行 Installation Manager 的無聲自動安裝,然後執行 Rational 產品的無聲自動安裝。在 Windows 上,請使用
installc.exe(而不是使用
install.exe)來執行無聲自動安裝。
範例指令:
Windowsinstall_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>
- 如果您已在管理機器上建立回應檔,但未在網路共用磁碟機上建立回應檔,您必須將回應檔複製到網路共用磁碟機。您不需要將 agentDataLocation 目錄複製到遠端伺服器。
註: 您可能要在網路共用磁碟機上建立專用於回應檔的目錄。例如,若為 Windows,是 c:\installation_files\response_files,若為 Linux 或 UNIX 系統,則是 /installation_files/response_files。