Archive: JRE Installation Directory


JRE Installation Directory
After the installation of JDK & JRE how can I determine the installation directory for these installations in an NSIS script so I can then set the environment variable for JAVA_HOME. I am trying to accomplish all of this in one installer --- Install JDK JRE ... Get installation directory ... Set environment variable.

Thanks!!


Registry?


duh! sorry

ReadRegStr $JInsDir HKLM "SOFTWARE\JavaSoft\Java Development Kit\1.6" "JavaHome"