This project is read-only.

Retrieve Icons From Executable


Support the icon being retrieved from the executable being launched. Find a way to store this information in the configuration file in a human-readable fashion (i.e. C:\AppFolder\App.exe;ResourceIndex;IconIndex)


pvpatarinski wrote Jul 13, 2012 at 6:43 AM

For the most part this functionality is now done. However the images are not displaying in a nice resolution. Any ideas?

cyberknet wrote Jul 16, 2012 at 3:55 PM

As far as I can tell, Icon.ExtractAssociatedIcon doesn't support Vista/Windows 7 large icons. It also adds overlays (shortcut arrow/handle that is in bottom left).

I've seen several implementations that use Windows API to accomplish this, but none of them have been GPL compatible to date. I've reached out to two different sample authors so far to see if they will allow us a license to their code under GPL v2/v3 - but so far none have responded.

I'll let you know if one of them does.

These are the authors I attempted reached out to:

cyberknet wrote Aug 6, 2012 at 2:28 PM

I have a local version that is pulling in high resolution icons - I just have to wait for the author of the icon library to license it under the GPL.

I did find a GPL v3 alternative to the second link and am using it - but that is just to extract the icon executable/dll name and the position. We still need something like the first link to extract the icon. I'm waiting on the author of the first link to contact me back before I commit the work.

wrote Feb 13, 2013 at 1:51 AM

wrote Nov 27 at 9:26 PM