Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
How can I create a program that shows the installed programs on your computer. I tried this code but it does not show all the programs installed in my computer

VB
For Each folders In IO.Directory.GetDirectories("C:\Program Files")
Listbox1.Items.Add(folders.ToString)
Next


please help friends!
Posted

1 solution

You can't rely on the directories to list the programs. In order to list programs that have been installed using the Windows installer you need to query WMI.

Have a look at this example Get a list of Installed Software using vb or c# and the wmi[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Jul-15 5:49am    
5ed.
—SA
Wendelius 26-Jul-15 0:56am    
Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900