np

jre/lib/ext

sorry, I may be dumb, but trying around with AI I get stuck in a number of places:
I need to install files in various locations at <javahome> (user's will have java installed before). I would expect to find something like javahome at "Files and Folders", but I don't. How can I determine the path to the current <javahome>?
Second there is both System16 and System64 onWindowsVolume/Windows, but where is System32?
thanx
nils
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Use a Search to look for the Java VM.

The System folder resolves to System32 on 32-bit systems.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
np

JAVA_HOME, jre/lib/ext

Ok, I had sorted out that I can get the registry entries for jvm installs. But: On my system - and lots of others I bet - multiple registry entries for multiple jre s are detected. What I need is the environment variable JAVA_HOME (this is a one click action in Install Anywhere and IMHO a must have feature for a java app installer builder). Also I still did not decipher on how to turn any detected property or env. variable into an actual path on the target machine to drop files into. I'm sure it's simple as can be, but it sure is not intuitively understandable - is there any kind of a step by step description, I might have overseen?
Thanx
nils
dorel
Posts: 25
Joined: Mon Oct 18, 2004 8:13 am

Hi,
The value of an environment variable can be retrieved in a Formatted field with the statement [%variable_name].
In your case use a custom action action of type "Directory Set With Formatted" to set the directory containig the files you want to place in the Java folder with the formatted text [%JAVA_HOME].
Schedule this custom action after Install Initialize standard action.
Dorel Pislan
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”