Skip to content
⌘ NSIS Forum Archive

inspect this code please

4 posts

mehdi79#

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 😁

SetOutPath $PLUGINSDIR
ExecWait `java -version > testjava.txt 2>&1` $0
FileOpen $0 testjava.txt r
kichik#
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.

mehdi79#
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