Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 5th June 2008, 15:15   #1
DEbln001
Junior Member
 
Join Date: Jan 2008
Location: Berlin (Germany)
Posts: 18
jre detection

Hello everybody,
i might need some help again.

I need to read out all coexistent installed Java Runtime Environments (JRE) e.g. "1.4.2_11" "1.5.6_06" "1.5.6_09" "1.6.0_06". Any ideas how i could do this?

Thanks in advance
DEbln001
DEbln001 is offline   Reply With Quote
Old 5th June 2008, 16:40   #2
DEbln001
Junior Member
 
Join Date: Jan 2008
Location: Berlin (Germany)
Posts: 18
solved

i solved it myself by using this:

Quote:
loop:
EnumRegKey $1 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" $0
StrCmp $1 "" done
StrLen $2 "$1"
${If} $2 > 3
${JREFoundArray->Push} "$1"
${EndIf}
IntOp $0 $0 + 1
Goto loop
done:
DEbln001 is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump