File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Detecting software installed in PC from a JAVA application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Detecting software installed in PC from a JAVA application" Watch "Detecting software installed in PC from a JAVA application" New topic
Author

Detecting software installed in PC from a JAVA application

Natasha Celingo
Greenhorn

Joined: May 23, 2006
Posts: 3
Hi,

Can someone help me with ways to detect if a software is installed on a PC. I want to check this from my Java application. If not installed, i want to subsequently prompt the user to install it and run the Java application
Natasha Celingo
Greenhorn

Joined: May 23, 2006
Posts: 3
Applications could be any simple applications like MS word / Acrobat Reader / VB.. etc. Do let me know if you know.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

You could check for existing files, but that will fail if the application is not installed in the default location.

Alternatively, you could find a 3rd party library for reading the Windows registry, especially HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, and its subkeys. Of course, that will fail if the application is not installed at all.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
wood burning stoves
 
subject: Detecting software installed in PC from a JAVA application
 
Similar Threads
Choosing web development architecture
What is the system requirement for the project
JavaFx application doesn't run with JavaFX JRE ?
Network Application
j2me installation on my cell