How do you get a custom icon in the device manager tree ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Currently my device's icon is the generic blank paper with a gear on it. I have read a couple docs online that state you can install your own icon into the device manager via INF. I've tried this but no matter what the icon stays the same (this is on Vista btw)

Here's my INF below. The icon I want for my device is in the QM2000Resources.dll file. This is a Windows DLL that was build for the sole purpose of containing my icon as a resource. resource.h indicates that it's resource 102. That file gets copied to system32 correctly but the icon never changes from the default gear icon.

What am I doing wrong?

Thanks in advance,
Jason.


[Version]
Signature="$Windows NT$"
Class=QM2000
ClassGUID={65C543A3-EEBE-11D3-81A9-006008C71C1A}
Provider=%QM2000.Provider%
DriverVer = 04/29/2007,6.0.1.0
CatalogFile = QM2000.cat

[DestinationDirs]
QM2000.CopyFiles = 12 ; WINDOWS\SYSTEM32\DRIVERS
QM2000Resources.CopyFiles = 11 ; WINDOWS\SYSTEM32

[Manufacturer]
%QM2000.Manufacturer%=QM2000

[ClassInstall32]
AddReg=QM2000.AddClassReg

[QM2000]
%QM2000.DeviceDesc%=QM2000.INSTALL, PCI\VEN_10E8&DEV_8293

; TODO: Add an optional Tag File to ensure that the end user
; has specified the correct path to the diskette, CD-ROM,
; or network drive. See the INF File Reference in the
; DDK documentation for more information on SourceDisksNames
; sections.
[SourceDisksNames]
1=%QM2000.DriverDiskName%,"",1

[SourceDisksFiles]
QM2000.sys=1
QM2000Resources.dll=1

[PreCopySection]
HKR,,NoSetupUI,,1


[QM2000.INSTALL]
CopyFiles=QM2000.CopyFiles, QM2000Resources.CopyFiles
AddReg=QM2000.AddRegLoader
AddProperty=QM2000_Icons

; File sections
[QM2000.CopyFiles]
QM2000.sys

[QM2000Resources.CopyFiles]
QM2000Resources.dll


[QM2000.AddClassReg]
HKR,,,,%QM2000.ClassName%

[QM2000.AddRegLoader]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,QM2000.sys


[QM2000_Icons]
; Register icons for use in Device Manager
DeviceIcon,,,,"%winddir%\system32\QM2000Resources.dll,-102"

; Service Installation

[QM2000.INSTALL.Services]
AddService = QM2000,0x00000002,QM2000_Service_Inst

[QM2000_Service_Inst]
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
StartType = 3 ;%SERVICE_AUTO_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\QM2000.sys
DisplayName = %QM2000.DeviceDesc%



[Strings]
QM2000.Provider="VaporWare"
QM2000.Manufacturer="Vapoware"
; TODO: Replace the following with an appropriate description
; of this actual device.
QM2000.DeviceDesc="QM2000 Device"
; TODO: Replace the following with an appropriate class name
; for this class of device.
QM2000.ClassName="QM2000 Device"
; TODO: If not installing from a diskette, change the following string
; to indicate the source location.
QM2000.DriverDiskName="QM2000 Installation Diskette"

.



Relevant Pages

  • Re: Weird SP2 Auto Update Notification
    ... | I have the same star icon and notification shown on my computer, ... | is i cant install security update for Windows XP, ... Now, my computer, has the Windows Update Notification icon in ... When SP2 came out, installation instructions said to update the BIOS, ...
    (microsoft.public.windowsupdate)
  • Re: How do you Uninstal Printer Adobe PDF
    ... Just a comment on installing programs on RISC OS. ... like!Spark to decompress them. ... If there is no installation ReadMe file you only need to copy the ... Just drag the application icon from the hard disk to the desired list. ...
    (comp.sys.acorn.apps)
  • Re: Saved programs put back into new XP system appear as documents?
    ... reinstallation media such as cd's or installation executables. ... Word icon but rather the icon for Wordpad. ... In Memoriam - MVP Alex Nichol ...
    (microsoft.public.windowsxp.general)
  • Re: KB912812 and KB917425 Setup Canceled
    ... Right below the 2 arrows on the right there is an icon of two files. ... There *may* be info available that describes a resolution for the installation issue. ... Check the System Event log to see if there are any errors under Source for Windows Update Agent. ...
    (microsoft.public.windowsupdate)
  • RE: How restore Volume Control program?
    ... When I go to Sounds and Audio in Control Panel, ... 'Device Volume' is dimmed out so I can't check the box to add the icon back. ... my Dell Windows installation disk after discovering that there was nothing in ... Any idea what files I need to copy back from backups or the XP installation ...
    (microsoft.public.windowsxp.configuration_manage)