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:

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

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


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
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.


answered 12 Jun '13, 13:24

wojciechka's gravatar image

wojciechka ♦♦
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



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



Asked: 12 Jun '13, 12:36

Seen: 1,324 times

Last updated: 13 Jun '13, 03:16