java - How to set a variable in Install4j -
i have compiler variable called myvariable. in script set -
context.setvariable("myvariable",new string("szzz"));
however, when use variable has not changed value
system.out.format("var %s!!!\n",context.getcompilervariable("myvariable"));
outputs original value
running debug version of installer shows variable has been changed
i confused , appreciate clarification
thanks
graham labdon
your mixing 2 different variable systems.
context#setvariable
sets , installer variable, context#getcompilervariable
gets value of compiler variable.
compiler variables fixed @ compile-time, cannot changed @ runtime. use
context.getvariable("myvariable")
to value of installer variable.
Comments
Post a Comment