This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
Joined: May 23, 2006
Applications could be any simple applications like MS word / Acrobat Reader / VB.. etc. Do let me know if you know.
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.