How to Customize the Library Icons in Windows 7

Windows 7 does not provide a GUI to change the icons shown for Libraries, and the Libraries don’t use the icon references provided in the desktop.ini file. Here is a nice way to customize the Library icons in Windows 7.

Thanks to Bogo for this excellent tip!

Changing the Library icon in Windows 7

1. Start Notepad

2. Click Start, type the following path and press ENTER:

%AppData%\Microsoft\Windows\Libraries

3. Drag the library (for which you want to change the icon) into the Notepad window.

4. Add the following entry after the line <isLibraryPinned>

<iconReference>Path-to-Icon</iconReference>

For example, to assign the 84th icon (index starts from 0) from Shell32.dll, type the following line:



<iconReference>SHELL32.DLL,84</iconReference>

Note: The <iconReference> line may already exist for the default Libraries. For custom Libraries, you need to add it manually.

5. Save the file and close Notepad. Press F5 to refresh the Libraries window to see if the Library icon has changed.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time.

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a ten-time recipient of the Microsoft MVP award in Windows Desktop Experience (Windows Shell), from 2003 to 2012. Ramesh founded Winhelponline.com in 2005.

Leave a Comment