4
1
I want to set an icon for my removable drive as an icon from a built-in Windows DLL using autorun.inf. Since Wikipedia's page on Autorun.inf shows that an icon can be taken from a DLL and used with an index, I would think the following would work (#54 of imageres.dll is the full recycling bin icon):
[autorun]
label=USB Drive
icon=%WINDIR%\System32\imageres.dll,54
But it does not. The icon shows up as the default "icon not found" icon when I remove and plug the device in again. Even if I use the absolute path for my system C:\Windows\System32\imageres.dll,54, it doesn't work. Can this be done at all, and if so, how?


"Even if I use the absolute path for my system
C:\Windows\System32\imageres.dll,54, it doesn't work." – Sam McCreery – 2016-01-28T08:25:03.913I apologize, I had my facts mixed and presented an untrue information. I updated my answer. – Maher Fattouh – 2016-01-28T14:12:59.583
That's interesting. shell32.dll works for me also, whereas imageres.dll does not. Weird, but luckily the icon I want is present in both. – Sam McCreery – 2016-01-28T16:14:29.627