I'd like to configure some parameters via command-line when running my installer; as the parameters are nested within parameterGroups and parameterLists and have the same names (i.e. they are distinguished by their location within the parameterGroup hierarchy), I cannot use the simple syntax path/to/installer/executable --paramName value.

The parameters reside within parameterGroups that looks like this:

<project>
  <parameterList>
    <parameterGroup name="paramGroup1" ask="0" >
      <parameterList>
        <stringParameter name="foo" value="bar" ask="0" />
      </parameterList>
    </parameterGroup>
    <parameterGroup name="paramGroup2" ask="0" >
      <parameterList>
        <stringParameter name="foo" value="bar" ask="0" />
      </parameterList>
    </parameterGroup>
  </parameterList>
</project>

Within my installer's actions, I can access the parameters using the following syntax:

${project.parameter(paramGroup1).parameter(foo).value}
${project.parameter(paramGroup2).parameter(foo).value}

How do I set the nested parameters' values via the command-line, to configure the installation process?

asked 12 Jun '13, 12:36

Dirk%20Stegemann's gravatar image

Dirk Stegemann
681283244
accept rate: 31%


Component and parameter names have to be unique within an entire project.

The XML above should throw an error while building that a parameter name is not unique.

link

answered 12 Jun '13, 13:24

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

You're right, and thus it is possible to set the nested parameter via

path/to/installer/executable --paramName value

as expected.

(13 Jun '13, 03:16) Dirk Stegemann
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47
×23
×9
×6
×1

Asked: 12 Jun '13, 12:36

Seen: 1,324 times

Last updated: 13 Jun '13, 03:16