Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator<RegistryKey> subkeys = key.subkeys();
subkeys.hasNext();) {
RegistryKey subkey = subkeys.next();
System.out.println(subkey.getName()); // You
need to check here if there's anything which matches
"Mozilla FireFox".
}
}
}
No Answer is Posted For this Question
Be the First to Post Answer
Why we need to serialize the object
11 Answers CTS, Geometric Software,
briefley expalin about the packages
Explain about member inner classes?
What does super keyword do?
What is the benefit of using enum to declare a constant?
Do we have pointers in java?
What is Runtime class and its purpose?
Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
What is the return type of the main method?
What is the use of string and stringbuffer?
When finalize method is called?
why we cannot declare static variable inside a static method