if(r.hasValue("InstallDir")) {
RegistryValue v = r.getValue("InstallDir");
System.out.println(v.toString() + " ... " + v.getData());
}
if(r.hasSubkeys()) {
Iterator i = r.subkeys();
while(i.hasNext()) {
RegistryKey x = (RegistryKey)i.next();
System.out.println(x.toString());
} // while
} // if