範例回應檔:解除安裝 IBM Web Enablement Liberty for IBM i
您可以編輯和使用這個解除安裝 IBM® Web Enablement Liberty for IBM i 的回應檔範例。
<?xml version="1.0" encoding="UTF-8"?>
<!-- ##### 著作權 ######################################################
# Licensed Materials - Property of IBM (c) Copyright IBM Corp. 2013.
# All Rights Reserved. US Government Users Restricted Rights-Use, duplication
# or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
####################################################################### -->
<!-- ##### 常見問題 #####################################
# 線上「資訊中心」提供了關於使用 Installation
# Manager 的最新資訊。您可以在其中找到無聲
# 自動安裝回應檔中所用的指令和屬性的相關
# 資訊。
#
# 「Installation Manager 資訊中心」的位置如下:
# http://publib.boulder.ibm.com/infocenter/install/v1r6/index.jsp
#
# 問題 1. 如何利用 Installation Manager 來記錄回應檔?
# 回答 1. 請從指令行中,在 eclipse 子目錄之下,
# 利用 record 參數來啟動 Installation Manager,
# 它會產生一個含有它所執行的動作、它所用的儲存庫
# 以及它的喜好設定的回應檔。如果您不想將產品安裝
# 到機器上,您可以選擇使用 -skipInstall 參數。當執行
# 新的安裝時,請指定新的 agentDataLocation 位置值。安裝
# 時,請勿使用現有的 agentDataLocation,因為它可能
# 損壞安裝資料,使您無法修改、更新、回復或解除安裝
# 已安裝的套件。
#
# Windows:IBMIM -record <responseFile> -skipInstall <agentDataLocation>
# Linux 或 UNIX:./IBMIM -record <responseFile> -skipInstall <agentDataLocation>
#
# 例如:
# Windows = IBMIM.exe -record c:\temp\responsefiles\WASv85.install.Win32.xml
# -skipInstall c:\temp\skipInstall\WebSphere_Temp_Registry
# Linux 或 UNIX = ./IBMIM -record /home/user/responsefiles/WASv85.install.RHEL64.xml
# -skipInstall c:\temp\skipInstall\WebSphere_Temp_Registry
#
# 問題 2. 如何利用回應檔來無聲自動執行 Installation Manager?
# 回答 2. 建立一個無聲自動安裝回應檔,然後從
# Installation Manager 安裝目錄中的
# eclipse\tools 子目錄來執行下列指令:
#
# Windows = imcl.exe -acceptLicense -showProgress
# input <response_file_path_and_name> -log <log_file_path_and_name>
# Linux、UNIX、IBM i 和 z/OS = ./imcl -acceptLicense -showProgress
# input <response_file_path_and_name> -log <log_file_path_and_name>
#
# 例如:
# Windows = imcl.exe -acceptLicense -showProgress
# input c:\temp\responsefile\WASv85.install.Win32.xml
# Linux、UNIX、IBM i 和 z/OS = ./imcl -acceptLicense -showProgress
# input /home/user/responsefile/WASv85.install.RHEL64.xml
#
# 必須包含 -acceptLicense 指令,指示接受正在安裝、
# 更新或修改的所有供應項目的所有授權合約。
# 當執行無聲自動模式時,-showProgress 指令會顯示進度。
# 要求說明可以顯示其他指令:IBMIM -help
#
####################################################################### -->
<!-- ##### 代理程式輸入 #############################################
# clean 和 temporary 屬性指定 Installation Manager
# 所用的儲存庫及其他喜好設定,以及在解除安裝完成之後,
# 是否應持續保存這些設定。
#
# clean 的有效值如下:
# true = 只使用回應檔中所指定的儲存庫
# 和其他喜好設定。
# false = 使用回應檔和 Installation Manager 中所指定的儲存庫
# 和其他喜好設定。
#
# temporary 的有效值如下:
# true = 在 Installation Manager 中,不持續保存
# 回應檔中所指定的儲存庫和其他喜好設定。
# false = 在 Installation Manager 中,持續保存
# 回應檔中所指定的儲存庫和其他喜好設定。
#
####################################################################### -->
<agent-input clean="true" temporary="true">
<!-- ##### 儲存庫 ###################################################
# 儲存庫是 Installation Manager 為了尋找可安裝的套件
# 而查詢的位置。儲存庫可能在本端(在 Installation Manager
# 所在的機器上),也可能在遠端(在公司內部網路,或代管於
# 網際網路的某處)。
#
# 如果使用這個回應檔的機器可以存取網際網路,
# 請將 IBM WebSphere Live Update 儲存庫
# 併到儲存庫位置清單中。
#
# 如果使用這個回應檔的機器無法存取網際網路,
# 請註銷 IBM WebSphere Live Update 儲存庫,
# 然後指定自訂內部網路儲存庫的 URL 或 UNC 路徑,以及
# 要用的本端儲存庫的目錄路徑。
#
####################################################################### -->
<server>
<!-- ##### IBM WebSphere Live Update 儲存庫 ####################
# 這些儲存庫包含 WebSphere Application Server Liberty 供應項目,
# 以及這些供應項目的各項更新
#
# 如果要使用安全儲存庫 (https),您必須具備 IBM ID,
# 您可以在 http://www.ibm.com/account 註冊,或透過您的
# Passport Advantage 帳戶來取得 IBM ID。
#
# 另外,您也必須搭配回應檔來使用金鑰環檔。
################################################################## -->
<!--repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.WEBENAB.v85"/-->
<!-- <repository location="https://www.ibm.com/software/rational/repositorymanager/repositories/websphere" /> -->
<!-- ##### 自訂儲存庫 #######################################
# 請將下列儲存庫位置索引鍵解除註解,並加以更新,
# 以指定任何內部網路儲存庫的 URL 或 UNC 路徑,以及
# 要用的本端儲存庫的目錄路徑。
################################################################## -->
<!-- <repository location='https:\\w3.mycompany.com\repositories\'/> -->
<!-- <repository location='/home/user/repositories/websphere/'/> -->
<!-- ##### 本端儲存庫 ########################################
# 當利用您自己機器上的本端儲存庫來安裝
# WebSphere Application Server Liberty 供應項目時,
# 請將下面這一行解除註解,並加以更新。
############################################################# -->
<!-- <repository location='insert the full directory path inside single quotes'/> -->
</server>
<!-- ##### 解除安裝套件 ############################################
#
# uninstall 指令
#
# 請利用 uninstall 指令來通知 Installation Manager
# 要解除安裝的安裝套件。
#
# modify 屬性是選用的,可以搭配 install 指令
# 來新增特性,或搭配 uninstall 指令來移除
# 特性。如果省略,預設值設為 false。
# false = 指示不新增或移除特性來修改
# 現有的安裝。
# true = 指示新增或移除特性來修改
# 現有的安裝。
#
# offering id 屬性是必要的,因為它指定要解除安裝的
# 供應項目。下列指令範例包含 WebSphere Application
# Server Liberty WEBENAB 版的供應項目 ID。
#
# version 屬性是選用的。如果提供了版本號碼,
# 就會在指定的版本層次解除安裝供應項目。
# 如果未提供 version 屬性,預設行為是
# 解除安裝最新的版本。版本號碼可以在
# 儲存庫的 repository.xml 檔中找到。
# 例如,<offering ... version='8.5.5000.20130326_0211'>。
#
# profile 屬性是必要的,必須符合要解除安裝的
# 供應項目的套件群組名稱。
#
# features 屬性是選用的。供應項目一律至少有
# 一項特性;這是一項不論是否明確指定,都會
# 安裝的必要核心特性。如果提供了其他特性名稱,
# 只會安裝這些特性。
# 各特性必須以逗點定界,不含空格。
#
# WebSphere Application Server Liberty 的 feature 值包括:
# liberty,embeddablecontainer,extprogmodels
#
# embeddablecontainer,extprogmodels 特性
# 是 liberty 的子特性。
#
# Installation Manager 支援同時解除安裝多個供應項目。
# 在 uninstall 指令中,也可以包含其他供應項目,
# 每個供應項目都必須有它自己的 offering id、
# version、profile 值及 feature 值。
#
# profile 指令
#
# install 指令所列出的每個供應項目都必須
# 包含個別的 profile 指令。profile 指令會通知
# Installation Manager 有關供應項目的特定內容或配置值。
#
# installLocation 指定供應項目的安裝位置。
# 如果利用回應檔來修改或更新現有的
# 安裝,請確定 installLocation 指向供應項目
# 先前的安裝位置。
#
# eclipseLocation 資料索引鍵應該利用與 installationLocation 屬性相同的
# WebSphere Application Server Liberty 目錄路徑。
#
# 請併入產品特定設定檔內容的資料索引鍵。
# 例如,將 WebSphere Application Server Liberty 供應項目安裝在 64 位元
# 系統上,必須包括 IBM Software Development Kit 的選項之一,
# 您可以利用資料索引鍵 cic.selector.arch 來指定這個選項,它的值可以
# 是 x86(32 位元)或 x86_64(64 位元)。
#
# 您可以在下列鏈結找到更多 cic.selector.arch 的詳細資料:
#
# https://infocenters.hursley.ibm.com/was/vNext/draft/help/index.jsp?topic=%2Fcom.ibm.websphere.wlp.core.doc%2Fae%2Ftwlp_ins_installation_dist_silent.html
#
####################################################################### -->
<uninstall modify="false">
<offering id="com.ibm.websphere.liberty.WEBENAB.v85" profile="WebSphere Liberty V8.5" features="liberty,embeddablecontainer,extprogmodels" />
</uninstall>
<profile id="WebSphere Liberty V8.5" installLocation="/QIBM/ProdData/WebSphere/Liberty/V85/Express">
<data key="eclipseLocation" value="/QIBM/ProdData/WebSphere/Liberty/V85/Express" />
<data key="cic.selector.arch" value="x86_64" />
</profile>
<!-- ##### 共用資料位置 ###########################################
# 第一次利用 Installation Manager 來執行安裝時,
# 請解除註解 eclipseCache 的喜好設定來設定共用
# 資料位置。
#
# Eclipse 快取位置可以從 installed.xml 檔取得,檔案位置如下:
# Linux/Unix:/var/ibm/InstallationManager
# Windows:C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager
# 來源內容如下:
# <property name='cacheLocation' value='C:\Program Files\IBM\IMShared'/>
#
# 請在文字編輯器中開啟 installed.xml 檔,因為如果
# 在 Web 瀏覽器中開啟,樣式表可能會隱藏這個值。
# 如需如何編輯喜好設定的進一步相關資訊,請參閱公用書庫,網址如下:
# http://publib.boulder.ibm.com/infocenter/install/v1r5/index.jsp?topic=/com.ibm.silentinstall12.doc/topics/r_silent_prefs.html
#
# 設定共用資料位置之後,就無法再利用
# 回應檔或圖形精靈來變更。
#
# 請確定共用資料位置是所有預期會使用 Installation
# Manager 的使用者帳戶都可以寫入的位置。
#
# 依預設,Installation Manager 會將下載的構件
# 儲存在共用資料位置中。這有兩個用途。
#
# 首先,如果在機器中重複安裝相同產品,
# 就會使用共用資料位置中的檔案,而不會
# 重新下載檔案。
#
# 第二,在回復程序期間,會使用儲存的構件。
# 否則,如果沒有儲存構件,或構件已遭移除,
# Installation Manager 必須存取安裝舊版時
# 所用的儲存庫。
#
# preserveDownloadedArtifacts 的有效值如下:
# true = 將下載的構件儲存在共用資料位置中
# false = 從共用資料位置移除下載的構件
#
####################################################################### -->
<!--
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
-->
<!-- ##### 喜好設定 ###########################################
# 可以指定 Installation Manager 的其他喜好設定。
# 這些喜好設定對應於「檔案/喜好設定」之下,
# 在圖形介面中的喜好設定。
#
# 如果回應檔忽略或註銷 preference 指令,
# Installation Manager 會使用先前設定的
# preference 值或 preference 的預設值。
#
# 在新版的 Installation Manager 中,可能有新增或淘汰的
# 喜好設定。請參閱線上「Installation Manager 資訊中心」,
# 以瞭解最新的一組喜好設定,並取得如何使用這些喜好設定的
# 說明。
#
# http://publib.boulder.ibm.com/infocenter/install/v1r6/index.jsp
#
####################################################################### -->
<!--
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='45'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
<preference name='com.ibm.cic.agent.ui.displayInternalVersion' value='false'/>
-->
</agent-input>