install4j中的默认组件

时间:2013-04-25 21:36:13

标签: install4j

当我的“安装组件”屏幕运行时(我处于控制台模式,如果重要),我按预期获得要安装的组件列表。但是,“默认”响应是接受其中两个组件,即使它们的“初始选择安装”选项为假。

我希望用户能够不选择任何可选组件,如果默认将其中一些组件“选中”,则无法进行此操作。

据我所知,没有加载varfiles。

我的install4j文件中的代码段:


<component name="A" id="527" customizedId="a" displayDescription="false" hideHelpButton="false" selected="false" changeable="true" downloadable="false" hidden="false">
  <description />
  <include all="false">
      <entry location=".i4j_external_314/a" fileType="regular" />
      <entry location=".i4j_external_2366/a" fileType="regular" />
      <entry location=".i4j_external_316/a" fileType="regular" />
      <entry location=".i4j_external_8155/a" fileType="regular" />
      <entry location=".i4j_external_318/a" fileType="regular" />
   </include>
   <dependencies />
</component>
<component name="B" id="528" customizedId="b" displayDescription="false" hideHelpButton="false" selected="false" changeable="true" downloadable="false" hidden="false">
   <description />
   <include all="false">
      <entry location=".i4j_external_316/b" fileType="regular" />
      <entry location=".i4j_external_8155/b" fileType="regular" />
      <entry location=".i4j_external_318/b" fileType="regular" />
   </include>
   <dependencies />
</component>
<component name="C" id="69" customizedId="c" displayDescription="false" hideHelpButton="false" selected="false" changeable="true" downloadable="false" hidden="false">
   <description />
   <include all="false">
      <entry location=".i4j_external_316/c" fileType="regular" />
      <entry location=".i4j_external_8155/c" fileType="regular" />
      <entry location=".i4j_external_318/c" fileType="regular" />
   </include>
   <dependencies />

请注意,在所有3个组件中,“selected”为false,“changeable”为true。

然而,当安装程序运行时,它的呈现方式如下:

    Which components should be installed?
    *: D
    *: E
    1: A
    2: B
    3: C
    Please enter a comma-separated list of the selected values or [Enter] for the default selection:
    [1,2]

(D和E很好 - 他们被设置为“已选中”和“用户无法更改”)

因此,即使A和B未被“选中”,它们也会显示为默认值。另请注意,“C”的配置方式与“A”和“B”相同,但默认情况下不会显示。

这是有问题的,因为我无法选择“无”可选组件。我必须选择至少1才能不接受默认值。

感谢您提供任何信息 - 如果您需要更多详细信息,我很乐意提供。

0 个答案:

没有答案