I think I will have to provide more details to make things clear.
I am using IzPack Installer
, which is used to package and install java applications on any target computer. Its just a software that helps on distribute custom java applications.
When using Izpack, Izpack has its own set of variables
(or even user defined) which can be used in any file that is marked as parsable. At run time, these variables will be substituted with actual values by the Izpack parsing system. These variables are referred by syntax $VARIABLE ($ sign prefixing the variable name). Note that it has got nothing to do with the unix/linux variables
So in my case I have a DOS batch file (createDB.bat) marked as parsable,which contains $MYSQL_PATH as an Izpack variable. Now at run time, before the batch file is run, the Iapack variable substitution system, parses the $MYSQL_PATH variable and replaces it with actual value(for example "C:\temp"). I don't know what value is substituted when $MYSQL_PATH is empty.
I said earlier that things worked because, I didn't test it exhaustively. I had to decide what code to execute depending on whether $MYSQL_PATH is empty or has some value. I tested it for empty but not if it had some value. Thus I had a false impression that everything worked well.
Anyway you have helped me out to solve half the problem. Thanks a lot for that. I hope you have a fair idea of what I am trying to achieve