I want to access installer variables in java custom code, which i will execute at different points of execution (preinstall or preuninstall. I want read the variables i set in project file and want to set few variables in my code. Can someone tell me how to achieve this in BitRock InstallBuilder? Does BitRock provide any API to do so or is there any other way to achieve this?

asked 08 Nov '11, 04:50

shivakmpl's gravatar image

accept rate: 0%

In order to pass information to your Java applications, you can pass variables you need as arguments when running the Java code - for example:

    <programArguments>-jar test.jar --username "${username}" --password "${password}"</programArguments>

You can access ${program_stdout} and ${program_stderr} variables from InstallBuilder to set variable as a result of running Java.


answered 08 Nov '11, 06:01

wojciechka's gravatar image

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



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: 08 Nov '11, 04:50

Seen: 2,006 times

Last updated: 22 Nov '11, 08:08