I would like to create a timestamp during the build and save this value in the installation tree. Using this timestamp will help me to identify the installation uniquely. What is the correct way to do that? It looks like variables defined in pre-build do not exist during the installation.

asked 03 Jul '12, 07:31

NicoleH's gravatar image

NicoleH
66202023
accept rate: 50%


I think I found the answer in the following post

http://answers.bitrock.com/questions/313/how-to-set-variables-at-build-time

link

answered 03 Jul '12, 07:33

NicoleH's gravatar image

NicoleH
66202023
accept rate: 50%

Yes, as shown in that question, you should simply create <stringparameter> with ask="0" (so it is not shown as a parameter to ask the user) for variables you want to persist to installation. Such as:

<parameterList>
  <stringParameter name="mysql_port" ask="0" />
</parameterList>
(03 Jul '12, 07:41) 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:

×5

Asked: 03 Jul '12, 07:31

Seen: 810 times

Last updated: 03 Jul '12, 07:41