Registry.HKEY_CURRENT_USER, Registry.HKEY_LOCAL_MACHINE };
for (int i = 0, n = possibleKeys.length; i < n; i++) {
if (officeProgressMonitor != null)
officeProgressMonitor.beginSubTask(Messages.getString("ApplicationAssistant.monitor_scanning_key", possibleKeys[i])); //$NON-NLS-1$
for (int j = 0; j < ROOTS.length; j++) {
RegistryKey registryKey = Registry.openSubkey(ROOTS[j],
possibleKeys[i],
RegistryKey.ACCESS_READ);
if (registryKey != null) {
String path = null;
if (path == null) {
try {
path = registryKey.getStringValue("Path");
path = "\"" + path
+ "\"";
}
catch (NoSuchValueException noSuchValueException) {
//ignore
}
}
if (path == null) {
try {
path = registryKey.getDefaultValue();
}
catch (NoSuchValueException noSuchValueException) {
//ignore
}
}