This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- how could i set a value to the isntall anywhere variable...
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2008
05:58 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2008
06:01 AM
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:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2008
09:32 AM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2008
09:50 AM
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.
