Core Java (6529)
Advanced Java (552)
Swing (223)
EJB (402)
Java Networking (49)
Hibernate (1009)
Spring Framework (1486)
Java J2EE AllOther (116)
How to check the version of Java?
Difference between operator overloading and function overloading
What is hibernate and spring java?
What is http forward?
What is an example of a constant variable?
What is core java used for?
What is a license file ?
Explain about message selector?
What is a managed node?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What is spring boot rest api? : Spring Boot
What is the difference between a checked and an unchecked exception?
What are spring jdbc templates used for?
What is one third plus one third as a fraction?
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