cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nandagopal
Level 2

Reading Registry keys dynamically.

Hi all,
I am facing a problem regarding reading a registry key value dynamically using InstallScript project.

Registry Setting
===========
HKEY_LOCAL_MACHINE
|_Software
|_JavaSoft
|_Java Plug-in
|_1.6.0_05 - JavaHome C:\Program Files\Java\jre1.6.0_05

In this situation, i know the path till Java Plug-in i.e. (HKLM\Software\JavaSoft\Java Plug-in), but i need to get the value of "JavaHome" key, with out referring the folder "1.6.0_05 " because it may vary for different versions.

Kindly help to get rid of this problem

Thanks in Advance
ANG
Labels (1)
0 Kudos
(2) Replies
dan_galender
Level 10

Look at the help topic "RegDBQueryKey". You can enumerate the subkeys of HKLM\Software\JavaSoft\Java Plug-in into a list variable, then process that list.
0 Kudos
Nandagopal
Level 2

Thank U DanGalendar
0 Kudos