cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
prabubiginstall
Level 5

how could i set a value to the isntall anywhere variable...

hi all.. i am trying to set a variable named java_exectute .. i want to set the jdk path from the windows registry as the value of this variable..

to know wat i am trying to do.. i want to check the local machine for the existence of a particular version of the jdk before installing my project..

hope some one in this forum will help me..........

thank you
Labels (1)
0 Kudos
3 Replies
prabubiginstall
Level 5

i noticed under.. pre install .. add action.. i have option to add multiple variables.. i added a variable java_execute.. but dont know how to specify the value to it.. i mean the path of jdk from windows registry:confused:
0 Kudos
MEinstaller
Level 7

You are probably going to have to write some java code to use the Win32RegistryService class to get the value out of the registry. Once you have the value you can pass it into the variable that you created.
0 Kudos
RobertDickau
Flexera Alumni

There should be a "Get Windows Registry Entry" action you can use; you might also search the lists of IA variables and LAX variables for those pertaining to JVM usage.
0 Kudos