1.    22 Aug 2016 #1
    Join Date : Aug 2016
    Posts : 10
    Windows 10

    Custom Icons from registry


    Hello, i'm new here.
    I was trying various ways of customizing default icons. I ended uop modifying both shell32.dll and imageres.dll. Anyway i was planning to make a .bat installer, and i had the doubt that using the same shell32 and imageres in different computers could cause problems. Then i decided to move in the registry way of doing things. But i can't find out how to customize many icons from imageres.dll, they seem to be completely random.

    Change Windows 8 icons trough registery - OS Customization, Tips and Tweaks - Neowin Forums
    I took starting code from here, i've put CURRENT_USER instead of USER.
    I know that in this part:
    Code:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
    "3"="C:\\Folder.ico,0"
    "4"="C:\\Folder.ico,0"
    "livefolder_back"="C:\\livefolder_back.ico,0"
    "livefolder_front"="C:\\livefolder_front.ico,0"
    "29"="C:\\Shortcut-arrow.ico,0"
    "34"="C:\\Desktop.ico,0"
    "15"="C:\\Computer.ico,0"
    The numbers refer to the iconsets contained inside shell32.dll, so it's easy to find out what number to use for other icons. Instead i don't understand how to know which icon from imageres.dll is referred from which code. In particular, apart for the fact that i'd like to change everything, in the page i linked the taskbar Explorer.exe icon is missing (http://windowstips.ru/wp-content/upl...Windows-10.png). And it's one of the many from imageres that i'd like to change and is missing in the linked page. Another missing one is the "full folder icon" (https://camo.githubusercontent.com/2...3038622e6a7067)
    Also normal internal Hard Drive icon is missing...

    Someone can tell me the logic between imageres icons index and registry codes? Or at least give me the codes for the three i've mentioned? Thanks


    For who can be interested, this is the batch code i made. Still needs some adjustmentes. Yes i know, there's a lot of useless fancy stuff.
    Code:
    @echo off
    color 1b
    echo Checking for administrator rights.
    timeout /t 1 /nobreak >nul
    cls
    echo Checking for administrator rights..
    timeout /t 1 /nobreak >nul
    cls
    echo Checking for administrator rights...
    timeout /t 1 /nobreak >nul
    cls
    echo Checking for administrator rights.
    timeout /t 1 /nobreak >nul
    cls
    echo Checking for administrator rights..
    timeout /t 1 /nobreak >nul
    cls
    echo Checking for administrator rights...
    
    net session >nul 2>&1
        if %errorLevel% == 0 (
    	echo Check was successfull.
    	echo Explorer will restart during the process,
    	echo  /!\ please save any work and ensure you aren't moving, copying or writing files.
    	echo Press any key to continue...
    	pause >nul
    	
    		cls
    		echo Killing explorer.exe...
    		echo.
    		echo.
    		echo.
    		echo [          ] 0%
    	taskkill /f /im explorer.exe >nul
    		cls
    		echo explorer.exe has been successfully killed.
    		echo.
    		echo.
    		echo.
    		echo [==        ] 20%
    	timeout /t 1 /nobreak >nul
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Moving icons to new location...
    		echo.
    		echo.
    		echo [==        ] 20%
    	move CustomIcons C:\Windows\System32\
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo.
    		echo.
    		echo.
    		echo [====      ] 40%
    	timeout /t 1 /nobreak >nul
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo Editing imageres.dll resources...
    		echo.
    		echo.
    		echo [====      ] 40%
    	imageres_icons.reg
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo imageres.dll resources successfully edited.
    		echo.
    		echo.
    		echo [======    ] 60%
    	timeout /t 1 /nobreak >nul
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo imageres.dll resources successfully edited.
    		echo Editing shell32.dll resources...
    		echo.
    		echo [======    ] 60%
    	shell32_icons.reg
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo imageres.dll resources successfully edited.
    		echo shell32.dll resources successfully edited.
    		echo.
    		echo [========  ] 80%
    	timeout /t 1 /nobreak >nul
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo imageres.dll resources successfully edited.
    		echo shell32.dll resources successfully edited.
    		echo Resetting icon cache
    		echo [========  ] 80%
    	set iconcache=%localappdata%\IconCache.db
    	If exist "%iconcache%" goto A
    	goto B
    	:A
    	ie4uinit.exe -ClearIconCache
    	del "%iconcache%" /A
    	del "%localappdata%\Microsoft\Windows\Explorer\iconcache*" /A 
    	:B
    		cls
    		echo explorer.exe has been successfully killed.
    		echo Icons moved to new loaction.
    		echo imageres.dll resources successfully edited.
    		echo shell32.dll resources successfully edited.
    		echo Icon Cache has been restored.
    		echo [==========]100%
    		timeout /t 2 /nobreak >nul
    		echo.
    		echo Restarting explorer
    	explorer.exe
    		echo.
    		echo Press any key to continue...
    	pause >nul
    	cls
    	echo Installation was successfull! Enjoy your new icons!
    ) else (
    	echo.
    	echo Error: The installer must run with administrator rights.
    	echo Please, rightclick and choose "run as administrator" option.
    	)
    
    echo Press any key to end the installation...
    pause >nul
      My ComputerSystem Spec
  2.    24 Aug 2016 #2
    Join Date : Aug 2016
    Posts : 10
    Windows 10
    Thread Starter

    May i... ehm... up?
      My ComputerSystem Spec
  3.    24 Aug 2016 #3
    Join Date : Aug 2014
    Forever West
    Posts : 3,905
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint

    Quote Originally Posted by Barnack View Post
    May i... ehm... up?
    I dunno know, looks like you did it.
      My ComputerSystem Spec
  4.    26 Aug 2016 #4
    Join Date : Aug 2015
    Melbourne
    Posts : 222
    Win 10 Pro X64

    The tutorial below might give you some more pointers

    Change Windows 10 folder icons with *.ico file
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Custom Folder Icons on a NAS Network Drive?
Greetings! Quite some time ago I went the extra mile in making custom Folder Icons for quite a lot of my stuff - Mainly because it's easier to navigate the content when watched from a TV more than an arm length away as even with magnification...
Network and Sharing
How to add custom folder icons as default?
hi, I am new to this forums, so pardon my mistakes... I would like to know how to change the default plain folder icons to custom folder as default... I was able to change lots of icons using customisergod from door2windows... but i got stuck with...
Customization
Custom File Icons?
I've got a program that creates various file types; some of these are associated with the program and display its icon. Is it possible to keep the file association, but change the icons for some of the associated types so they stand out in a...
Customization
Custom icons for individual files
How can I change the icon for an individual file? For example, I have a phonelist.docx Word file on my desktop and would like to change the icon from the default Word icon to a telephone icon. How can that be done?
General Support
Solved Start Menu Custom Icons?
Is it possible to swap out the default icon with custom one? I use to use a app called OblyTile within Windows 8 and would swap out my icons with custom ones. Is there anyway to do this in W10? Thanks.
Customization
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 05:50.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums