代理数据位置

代理数据位置或 appDataLocation 是 Installation Manager 用于存储与应用程序关联的数据的目录。关联的数据包括 Installation Manager 所完成操作的状态和历史记录。

要点: 不支持更改代理数据位置目录或子目录中的内容、文件或目录。更改这些内容可能会使 Installation Manager 无法工作。

如果使用 -dataLocation 选项为代理数据位置指定目录位置,且该位置不是缺省位置,那么每次使用 Installation Manager 或 Installation Manager 安装程序时都必须使用所指定的位置。对于 Installation Manager 安装程序,每次启动该程序时,您都必须使用 -dataLocation 选项指定同一目录位置。已安装的 Installation Manager 实例将自动使用指定的位置。

appDataLocation 属性是在 config.ini 文件中设置的。 config.ini 文件位于:
  • Microsoft Windows:\Installation Manager\eclipse\configuration
  • Linux 和 UNIX:/InstallationManager/eclipse/configuration
如果 config.ini 文件定义了 cic.appDataLocation 属性,Installation Manager 就会使用该属性。如果未定义 cic.appDataLocation 属性,那么 Installation Manager 会使用缺省值。下表指明了缺省位置。
表 1. 缺省代理数据位置
操作系统 管理员安装 非管理员安装
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 包含已安装产品的元数据
installed.xml 包含有关一组安装位置和已安装软件包的信息
license 对于未使用 Installation Manager 许可的 IBM® 产品,license 文件夹为空。
logs 包含代理日志文件
p2 包含 Eclipse p2 概要文件元数据
pluginState 包含 Eclipse 插件状态信息和 Eclipse 错误日志文件
temp 包含安装期间创建的临时文件
uninstall 包含一个可执行文件以及使用过 Installation Manager 卸载软件包时所需的其他文件

反馈