• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

finding all installed program in windows using java swing?  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will great if some body has solved this problem finding all installed
program in windows box , it would be great to know.

--Subrata Saha
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> It will great...

it would also be great if posters responded whether answers were helpful or not - it's not a one-way street
 
Subrata Saha
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still waiting for the answer
 
Sheriff
Posts: 21742
102
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Define "installed programs".
Do you mean something like Window's Add/Remove Programs? Then you'll have to go into the registry. Use Google to find libraries for accessing the registry and which registry keys to use.
Do you mean all executables found on a system? Then you can use File.listRoots() and File.listFiles() in recursion. Keep in mind that this will be a lengthy procedure; the Windows folder alone contains several thousands of files and easily one hundred sub folders. Program Files is usually of equal magnitude.

Either way, use a JList (single column) or JTable (multiple columns) to display the results.
 
Subrata Saha
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Prime wrote:Define "installed programs".
Do you mean something like Window's Add/Remove Programs? Then you'll have to go into the registry. Use Google to find libraries for accessing the registry and which registry keys to use.



Yeah i want to find out if some has the library for finding all the display name for installed programs from the registry.
 
Rob Spoor
Sheriff
Posts: 21742
102
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java Windows registry. Enjoy.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!