I am very new to IzPack, sorry if my question is a simple one, but I
couldn't find the answer in the doc.
During the install of my soft (a Java-based application, with some
shell and batch scripts to help launching it), I'd like to add the
subdir bin/ to the system and/or user PATH, as well as setting an
environment variable (that my app uses to locate a specific dir; it
would be especially nice if the user could select this dir during the
install).
Any idea? (how to update the PATH and set an env var)
Regards,
--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Hi,
there was a question regarding reading from and writing to the Windows
registry. I've developed some actions to do exactly that - you can
download them from https://gist.github.com/1789030
For setting an global environment variable, use this configuration:
<Action>
<Root value="HKLM" />
<Key value="SYSTEM\CurrentControlSet\Control\Session Manager\Environment" />
<Name value="$VariableName" />
<Value value="$DesiredValue" />
<Mode value="prepend|append|overwrite" />
<CreateIfNew value="true|false" />
</Action>
For setting the current user's environment variable, use this configuration:
<Action>
<Root value="HKCU" />
<Key value="Environment" />
<Name value="$VariableName" />
<Value value="$DesiredValue" />
<Mode value="prepend|append|overwrite" />
<CreateIfNew value="true|false" />
</Action>
To edit the system search path, you should use either append or
prepend as value for Mode.
Prepend makes sure the executables installed by your installer are
found first. This may change the system's behavior: other executables
that were found with the old path will no longer be found.
Append makes sure only those of your executables that were not found
using the old path will now be found.
Kind regards,
Dirk