Hi,

I want to pass a user defined parameter to installer so that I can use this in some installation logic in unattended mode. For example, I need to supply boolean parameter install_app1 to installer and want to user this in installation logic. Please comment that how can I do this in InstallBuilder.

Thanks

asked 29 Jul '13, 02:44

SuryaSingh's gravatar image

SuryaSingh
126434349
accept rate: 55%


That's easy, just add a <parameter> (or in this case the more specific <booleanParameter>) to your project's <parameterList>.

By default, parameters create a GUI page to allow users to manipulate them, but you can disable this behavior, thus making the parameter invisible, by setting its ask value to 0:

<parameterList>
    <booleanParameter>
        <name>MyCoolOption</name>
        <ask>0</ask>
    </booleanParameter>
</parameterList>

The parameter given above can be set by calling your installer with the option

/path/to/your/installer --MyCoolOption 0

or

/path/to/your/installer --MyCoolOption 1

The command-line option used to set the parameter can differ from the internally used parameter name, by adjusting the parameter's cliOptionName property. You should also set the default property.

Have a look at the online documentation for more details.

Best, Dirk

link

answered 29 Jul '13, 03:01

Dirk%20Stegemann's gravatar image

Dirk Stegemann
681283244
accept rate: 31%

edited 29 Jul '13, 03:02

Thank you Mr. Stegemann!!

(29 Jul '13, 06:15) SuryaSingh
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
×36

Asked: 29 Jul '13, 02:44

Seen: 941 times

Last updated: 29 Jul '13, 06:15