A. When you create custom libraries in Windows 7, you get a very generic icon, and there's no obvious graphical way to change this. To modify the icon, you need to update the XML file that represents the library, which is found in %AppData%\Microsoft\Windows\Libraries.
- Navigate to %AppData%\Microsoft\Windows\Libraries.
- Open the library whose icon you want to modify in a text or XML editor. (Notepad will do fine.)
- Locate the line
- Under this line, insert a new line and replace d:\documents\icons\msflag.ico with the name of your icon file. If you're using a DLL or EXE, also specific the index ID of the icon to be used. For example,
- Save the file.
Your complete file may look like this:
<?xml version="1.0" encoding="UTF-8"?>
Your library icon should now be the icon you specified.
The default icons used are all found in c:\windows\system32\imageres.dll and are icon numbers 1001 to 1008. If you are short of icons, take a look in this file with an icon browser and you may be able to use one!