How to use the 'optionfile' command line option?

asked 14 Sep '11, 04:33

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


The 'optionfile' command line option lets you specify installation options in a separate file. The 'optionfile' option is present on any installer created by InstallBuilder.

The option file should contain one line per option, using the format key=value. You can use any of the options accepted by the installer, for example:

installer-language=es
prefix=/home/bitrock/demo-1.0
mode=xwindow

The 'optionfile' option is very useful for testing environments. You can have several option files where you can specify different installation modes or different settings for the parameters defined in the installers.

link

answered 14 Sep '11, 04:36

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

If I have '=' operator in value, how to take care of that?

Is the answer as below? key="te=st"

Then - what is the escape character for " (double quote)?

link

answered 18 Sep '13, 03:33

Ashesh%20Vashi's gravatar image

Ashesh Vashi
1111
accept rate: 0%

You should be able to use:

key=te=st

Only the first = has special meaning

(18 Sep '13, 15:39) juanjo ♦♦

Thanks for the information. I figured that out by creating a sample installer.

Only disadvantage, I see with this approach is - we can not specify a value with newline.

link

answered 18 Sep '13, 15:42

Ashesh%20Vashi's gravatar image

Ashesh Vashi
1111
accept rate: 0%

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:

×23
×13
×2

Asked: 14 Sep '11, 04:33

Seen: 2,893 times

Last updated: 18 Sep '13, 15:42