How do I create a new system environment variable?
You can create a system environment variable using a addEnvironmentVariable action. You will have to include a section like the one below inside an action list section of your XML installer project file. On Unix platforms, the variable will be added to any of the shell configuration files: ~/.bashrc, ~/.profile
. On Windows, the environment variable will be created in the registry.
<addEnvironmentVariable>
<name>MYAPP_HOME</name>
<value>${installdir}</value>
</addEnvironmentVariable>
Note that in Unix, the effect will not take place until the user logs in again.