Need help in VB program

aliweb

Perch
Hi there

Please see the attached screenshot of a program that shows all the program
that are installed on windows (program is available on pscode.com). This program is an uninstaller that uninstalls program from the windows.
This program picks registry keys from the following location to show programs installed:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Now the problem is as you can see it is showing same icon for every program installed. What I want is to load
the respective icon for each program like you see in Add/Remove Programs in Control Panel.

In the above path key you will find a string called DisplayIcon which shows the icon to be displayed but not all
keys (programs) have this string.

So could anyone please tell me how to do this?
 

Attachments

  • screenshot.jpg
    screenshot.jpg
    34.4 KB · Views: 318
once you obtain the list of EXEs, you'll have to extract the icon from the program's EXE file.

I wrote this program about a year ago which could help you:
http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=40557&lngWId=1

Once you have the Icon, you'll have to dynamically load it into your ImageList box. I don't know if this is possible but its something you could explore

I used to do some VB coding and have worked with Assembly as well but now I'm tired of it :)
 
Yash said:
once you obtain the list of EXEs, you'll have to extract the icon from the program's EXE file.

I wrote this program about a year ago which could help you:
http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=40557&lngWId=1

Once you have the Icon, you'll have to dynamically load it into your ImageList box. I don't know if this is possible but its something you could explore

I used to do some VB coding and have worked with Assembly as well but now I'm tired of it :)

Thanks for your quick reply Yash but this program uses a List box with image list so I have to give physical path of the images which could a gif, jpeg or bmp e.t.c

The solution you have provided is my last resort and I will definitely use it but still it is not easy to find the EXE of all the programs installed because the registry key I provided above doesn't contain the EXE path of all the programs. But I really appreciate your comments and will see the link you have given.
 
Back
Top