Question

How can I create my own installer environment variables?

How can I create my own installer environment variables?

Answer:

You can create custom environment installer variables using a <setInstallerVariable> action. For example:

<setInstallerVariable>
   <name>serverport</name>
   <value>3306</value>
</setInstallerVariable>

The code above will create an installer environment variable called serverport , which can later be referred to as ${serverport}. Wherever it appears, it will be substituted for its value during installation.