Archive: inspect this code please


inspect this code please
Hi every one

I wrott this code to detect java version but the file generated cannot open in read mode any idea :D

SetOutPath $PLUGINSDIR
ExecWait `java -version > testjava.txt 2>&1` $0
FileOpen $0 testjava.txt r


You can't use redirection without using the command line interpreter. But that's unnecessary as well. You have many Java version related functions available.

http://www.google.com/cse?q=java&sa=...69:ziywxtw6b6m


Yes I know how to detect java by other ways but the risk is to find many JRE installed and I need to know the earliest installed edition


How will executing java.exe solve this?