Hi, I'm interested in recording options passed to various user input panels during installation. I'd like to store them in a response file and use the response file in subsequent installations. Is it possible to record input during initial installation, and create an ini file out of it?

thanks, Reddy

asked 17 Oct '12, 16:25

laxmireddy's gravatar image

laxmireddy
1202020
accept rate: 0%


InstallBuilder does not provide this feature.

However, your installer may store some values using simple actions:

<writeFile> <path>${installdir}/install.option</path> <text></text> </writeFile> <foreach> <values>installdir option1 option2 option3</values> <variables>key</variables> <actionList> <propertiesFileSet> <file>${installdir}/install.option</file> <key>${key}</key> <value>${${key}}</value> </propertiesFileSet> </actionList> </foreach>

This will write values for option1, option2, option3 in the install.option file.

This can be combined with some option that, if specified, will store the options in the specified file.

link

answered 18 Oct '12, 08:07

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Thanks for the response. This should work fine. However, there are far too many variables that I want to record for me to list individually on the foreach's values element. Is there a way I can use a wild card here? For example, my variables start with "MSS_", "ORACLE_", "SYBASE_", and I am not able to use "MSS_*" wildcard in the foreach listing.

Thanks, Reddy

(19 Oct '12, 09:59) laxmireddy

It is not possible, since foreach iterates over list of values and there is no way to list all of accessible parameters.

(19 Oct '12, 10:44) wojciechka ♦♦
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:

×9
×3

Asked: 17 Oct '12, 16:25

Seen: 1,156 times

Last updated: 19 Oct '12, 10:45