Is it possible to create a variable that can be substitued within .bat and configuration files during installation? For instance, I have a batch file that starts up the application, in it I need to set the JAVA_HOME variable that points to the distribution of JAVA that we ship with the product. I'd like to be able to do something like;
JAVA_HOME=[TARGETDIR]\jdk-1.5.0
and have it replace it with the full path.
In other places, I'd like to set the default working directory (defined as a variable in a configuration file) to point to the target directory of the installation followed by the path to the working directory.
Right now I'm just evaluating the product and have used environment variables to achieve this for the startup file but I'm unable to do this for the config file.
Nice product otherwise.
Thanks!