代理程式資料位置

代理程式資料位置(或 appDataLocation)是 Installation Manager 用來存放應用程式相關聯資料的目錄。相關聯的資料包括 Installation Manager 完成之作業的狀態及歷程。
重要: 不支援變更代理程式資料位置目錄或子目錄中的內容、檔案或目錄。變更這些內容會妨礙 Installation Manager 運作。

如果您使用 -dataLocation 選項指定代理程式資料位置的目錄位置,但該位置不是預設值,則每次您使用 Installation Manager 或 Installation Manager 安裝程式時,都必須使用指定的位置。若為 Installation Manager 安裝程式,則每次啟動該安裝程式時,都必須使用 -dataLocation 選項指定相同的目錄位置。 Installation Manager 的已安裝實例會自動使用指定的位置。

cic.appDataLocation 內容設定於 config.ini 檔案中。config.ini 檔案的位置如下:
  • Microsoft Windows:\Installation Manager\eclipse\configuration
  • Linux 及 UNIX:/InstallationManager/eclipse/configuration
如果已在 config.ini 檔案中定義此內容,則 Installation Manager 會使用 cic.appDataLocation 內容。如果未定義 cic.appDataLocation 內容,則 Installation Manager 會使用預設值。此表格指出預設位置。
表 1. 預設代理程式資料位置
作業系統 管理者安裝 非管理者安裝
Windows 2000 及 Windows XP C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager C:\Documents and Settings\<user>\Application Data\IBM\Installation Manager
Windows Vista 及 Windows 2008 C:\ProgramData\IBM\Installation Manager C:\Users\<user>\AppData\Roaming\IBM\Installation Manager
Linux 及 UNIX /var/ibm/InstallationManager /<user>/var/ibm/InstallationManager
註: 在 Windows 上,cic.appDataLocation 值包含雙反斜線。例如:cic.appDataLocation=C\:\\Documents and Settings\\All Users\\Application Data\\IBM\\Installation Manager。這是正確文字。
若要判定 Installation Manager 的位置,請移入這些位置:
  • Windows 登錄機碼:HKLM\SOFTWARE\IBM\Installation Manager\location
  • Linux 及 UNIX:
    1. 開啟 /etc/.ibm/registry/InstallationManager.dat 檔案。
    2. 查看位置項目;例如,location=/var/ibm/InstallationManager

安裝 Installation Manager 之前,您可以變更 appDataLocation 內容的值。從指令行啟動 Installation Manager 安裝時,請指定 -dataLocation 無聲自動指令引數。如需相關資訊,請參閱Installation Manager 指令行引數

範例:install.exe -dataLocation C:\Rational\appDataLocation

表 2. 儲存在代理程式資料位置的資訊
資料夾或檔案 資訊
adapters 配接器儲存資訊以供回復使用的目錄位置
bundles 包含套件組合
.settings 包含喜好設定
histories 包含之前的安裝及解除安裝程序的相關資訊
installRegistry.xml(檔案) 包含已知設定檔及已安裝套件的相關資訊
installRegistry 包含已安裝供應項目的 meta 資料
installed.xml 包含一組安裝位置及已安裝套件的相關資訊。
license 若是未使用 Installation Manager 授權的 IBM® 產品,則 license 資料夾是空的。
logs 包含代理程式日誌檔
p2 包含 Eclipse p2 設定檔 meta 資料
pluginState 包含 Eclipse 外掛程式狀態資訊及 Eclipse 錯誤日誌檔
temp 包含安裝期間建立的暫存檔
uninstall 包含執行檔及利用 Installation Manager 解除安裝套件時所需的其他檔案

意見