响应文件命令 | 描述 |
---|---|
Set profile <profile id="the profile id" installLocation="the install location of the profile"> <data key="key1" value=”value1”/> <data key="key2" value=”value2”/> </profile> |
使用此命令来创建安装位置。如果指定的安装位置已存在,那么该命令不起作用。当前,在创建概要文件时,静默安装同时还会创建两个安装环境:一个用于 Eclipse,一个用于本机。概要文件是安装位置。 可以使用 <data> 元素来设置概要文件属性。 以下列表包含当前受支持的键和相关值:
注: 用逗号将多个 NL 值隔开。
以下列表包含当前受支持的语言代码:
|
Set repositories <server> <repository location="http://xxx/repository/"> <repository location=”file:/C:/repository/”> <!—add more repositories below--> <…> </server> |
使用此命令来指定静默安装期间所使用的存储库。使用 URL 或 UNC 路径来指定远程存储库,使用目录路径来指定本地存储库。 |
Install <install> <offering profile= "profile id" features= "feature ids" id= "offering id" version= "offering version"></offering> <!—add more offerings below> <…> </install> <install modify="true">(可选属性) |
使用此命令来指定将安装的安装软件包。 概要文件标识必须与现有概要文件或 Set profile 命令所创建的概要文件相匹配。 通过逗号分隔的列表(例如,“feature1, feature2”等),可以有选择地指定功能部件标识。如果未指定任何功能部件标识,那么将安装指定产品中的所有缺省功能部件。 注: 即使没有在逗号分隔的列表中显式指定必需的功能部件,安装中也将包含这些功能部件。
|
<install modify="true">or <uninstall modify="true">(可选属性) <uninstall modify="true"> <offering profile="profileID" id="Id" version="Version" features="-"/> </uninstall> |
在 install 和 uninstall 命令上使用 <install modify="true"> 属性来指示您想修改现有安装。如果未将该属性设置为 true,那么会将它的值缺省设置为 false。如果修改操作的目的只是为了安装其他语言包,那么在产品功能部件标识列表中应使用连字符“-”来指示没有添加新的功能部件。 要点: 必须按示例中那样指定 "modify=true" 和连字符 "-" 功能部件列表,否则,install 命令将安装产品的缺省功能部件,而 uninstall 命令将除去所有功能部件。
|
Uninstall <uninstall> <offering profile= "profile id" features= "feature ids" id= "offering id" version= "offering version"></offering> <!—add more offerings below> <…> </uninstall> |
使用此命令来指定将卸载的安装软件包。 概要文件标识必须与现有概要文件或在概要文件命令中指定的概要文件相匹配。并且,如果未指定任何功能部件标识,那么将卸载所指定产品中的所有功能部件;如果未指定任何产品标识,那么将卸载所指定概要文件中的所有已安装产品。 |
Rollback <rollback> <offering profile= "profile id" id= "offering id" version= "offering version"> </offering> <!—add more offerings below <…> </rollback> |
使用此命令来实现从指定概要文件上当前安装的版本回滚到指定产品。不能在 rollback 命令中指定功能部件。 |
InstallAll <installALL/> 注: 此命令的用途等价于
–silent –installAll. |
使用此命令以静默方式搜索并安装所有可用的可安装软件包。 |
UpdateAll <updateALL/> 注: 此命令的用途等价于
–silent –updateAll. |
使用此命令以静默方式搜索并更新所有可用的可安装软件包。 |
License <license policyFile=“policy file location”/> 例如: <license policyFile=”c:\mylicense.opt”/> |
使用此命令来生成包含 license 命令的响应文件,其方法是在以记录方式启动 Installation Manager 之后,再启动许可证向导。 在记录方式期间,如果您通过许可证管理向导来设置 flex 选项,那么您设置的选项将记录在一个名为“license.opt”的许可证策略文件中,该文件与生成的响应文件位于同一目录中;响应文件将包含引用该策略文件的 license 命令。 |
Wizard <launcher -mode wizard -input < response file > |
使用此命令来以用户界面方式启动 Installation Manager。用户界面方式在安装向导或卸载向导中启动 Installation Manager。但是,在这种情况下,响应文件只能包含 preference 命令和 install 命令或者是包含 preference 命令和 uninstall 命令;当您以用户界面方式运行 Installation Manager 时,不能在同一响应文件中混合使用 install 和 uninstall 命令。 |