Change icon for USB storage disk

  • Follow


Hi all,
  I would like to change icons for USB storage device. The icons I
want to change include 'NoMediaIcons' and 'Icons'.
  I use USB's hardware ID to modify registry, it works fine.

  The followings show the registry I have modified:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB
\Vid_03f0&Pid_3207\IQV309IDZ8QVNQFJ\Device Parameters
  Icons [REG_MULTI_SZ] = %SystemRoot%\system32\icon.ico
  NoMediaIcons [REG_MULTI_SZ] = %SystemRoot%\system32\icon1.ico

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
\PerHwIdStorage\USB#Vid_03f0&Pid_3207
  Icons [REG_MULTI_SZ] = %SystemRoot%\system32\icon.ico
  NoMediaIcons [REG_MULTI_SZ] = %SystemRoot%\system32\icon1.ico

  See above, I modify "Enum" and "PerHwIdStorage" registry key
separately, they work fine both. In other words, the disk icon in "My
computer" has changed.

  However, since my USB device has 2 luns, that is, if I plug in the
device, there will be 2 disks in "My computer". If I change above
registry key, the 2 disks will have the same icon.
  My purpose is to specify different icon to each disk in a USB
device. I use USBSTOR's hardware ID to modify following registries:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR
\Disk&Ven_HP&Prod_v100w&Rev_4096\IQV309IDZ8QVNQFJ&0\Device Parameters
  Icons [REG_MULTI_SZ] = %SystemRoot%\system32\icon.ico

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
\PerHwIdStorage\USBSTOR#DiskHP______v100w___________4096
  Icons [REG_MULTI_SZ] = %SystemRoot%\system32\icon.ico

  Where 'DiskHP______v100w___________4096' is the storge's hardware
ID.

  I also modify above 2 key separately, and they both don't work.
  It seems if I modify registry key associated with USBSTOR, it will
be no effect.

  Does anyone know how to specify defferrnt icon for 2 disks in a USB
storage device?
  Any suggestion is highly appreciated!

  Thanks!
  Best Regard,
  Gordon
0
Reply gordontcp 4/19/2010 7:38:40 AM


0 Replies
270 Views

(page loaded in 0.007 seconds)

8/3/2012 4:16:25 PM


Reply: