Check JAVA installation on Windows
I'm looking for the simplest possible way to check and see if Java is installed for Windows users from within Max....anybody have a solution? This is going in m4l, so there's no possibility of support outside of native processes or C externals. I'm sure DOS would avail, but I'm only checking in the first place so that I can use DOShack for other stuff....if only it were in C :(
a
You would have to write some C code for a custom external that checks the Registry:
HKLM "SOFTWAREJavaSoftJava Runtime Environment"
If that key doesn't exist - then no Java installed.
Thanks for the response....I found your earlier posts about creating an installer and followed them to their logical conclusions. I decided to just create a C external that can 'mkdir' and 'xcopy' instead, since I'm going to have to do something in C anyway. Seems like I should just be able to call system() to get what I need....
a
FWIW, I did create an installer (for some of my standalones) that checks for this registry key, and if not detected, directs the user to the Java site to download and install. It's not as integrated as I would have ideally liked, but it gets the job done. I use the NSIS installer: http://nsis.sourceforge.net/