PDA

View Full Version : list box question



rick1
03-10-2003, 02:34 PM
Here a silly question, sorry.
I have a blank listbox and on page load I would like to fill it with the list of all the programs already installed on the sistem. So I thought that the problem is to write the names in some text file and load it in the listbox. But How is poossible to get this list of names? The list is for add the shorcut of the program to install. I hope my bad english will allow you to understand
Thanks

Worm
03-10-2003, 07:53 PM
Here is a way to populate a list box with the programs installed on a computer.

It goes through the registry's uninstall information and pulls the Software Title and the UnInstall info. From there it populates the list box with the uninstall string as the Item Data. If you double click a List Item, the unistall string will display. You could actually use a File.Execute with the string to fire the uninstall.

Download Sample Project (http://www.warmuskerken.com/ams/installedprograms.zip)

rick1
03-11-2003, 01:09 AM
many many thanks, This is what I was looking for

Worm
03-11-2003, 06:35 AM
You're welcome.