Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to get a list of installed programs in Visual Basic 2008

Loading...

Sign in or sign up now!
4,814
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 3, 2009

Visual Basic 2008 - Get A List of installed Programs. Just a simple tutorial on getting a list of installed programs into listbox. I;m back on my old laptop as my Vista computer is stuffing up.
Codes:

Imports Microsoft.Win32

Dim Key, Reader As RegistryKey, Y As String
Key = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Unin­stall", False)
For Each X In Key.GetSubKeyNames
Reader = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Unin­stall\" & X, False)
If Reader.GetValueNames().Contains("DisplayName") Then
Y = Reader.GetValue("DisplayName")
If Not ListBox1.Items.Contains(Y) Then ListBox1.Items.Add(Y)
End If
Next

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (environmentalnerd53)

  • how u maked the code background to black?

  • its a Visual Stdio template, I could upload it to my site, It should work on VB Express.

Top Comments

  • do u do all this coding by urself??

see all

All Comments (43)

Sign In or Sign Up now to post a comment!
  • Anyone now how to check add/remoe programs on a windows 64bit the regidtry key is HKEY_LOCAL_MACHINE\SOFTWARE\Wo­w6432Node\Microsoft\Windows\Cu­rrentVersion\Uninstall but it doesn't seem to work by just changing the key name.

  • Great video! I like your videos very much! You always have codes

    you are talking english to evrybody can understand you!! Your videos are

    the best! You are smart boy!

  • environmentalnerd53; Thanks for great tutoral you are a good teacher I would not know as much now as I do without you tutorials Please Could you do a vidio on how to call up users information This is what I need List view 1 Usernames Collem 1 Total Users Collem 2 User Active Collem 3 Last Logon Collem 4 User Local Membership State collem 5 (Ie Administrator, Guest , Or User) if you could do this it would be great and I would be the most greatful persion Kind Regards BJseal91
  • Great work man !!! You are the best !!!

  • How do you find out all these codes it it hard??

  • When I try to compile this under VB 2005 it gives me this same problem. "For each X in Key.GetSubKeyNames is broken because "X" is undefined.

  • it says for each X

    is a problem

  • no program is showed up, so it does not work for me(xp user)

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more