how can i store user input in variable and pass that variable value to post install script as an argument?

asked 16 Jun '14, 07:04

Ritz02's gravatar image

Ritz02
1222
accept rate: 0%


All parameters are stored as variables with same name as the parameter's name - for example ${installdir} is the value of the installdir parameter (or its default value if accessed before showing the parameter).

So, to you can simply do:

<preInstallationActionList> <runProgram> <program>${installdir}/post-install.sh</program> <programArguments>"${variable1}" "${variable2}"</programArguments> </runProgram> </preInstallationActionList>

For variable1 and variable2 parameters.

link

answered 16 Jun '14, 09:09

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

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:

×36
×15
×2

Asked: 16 Jun '14, 07:04

Seen: 1,234 times

Last updated: 16 Jun '14, 09:09