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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -