Custom Icons from registry


  1. Posts : 22
    Windows 10
       #1

    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 Computer


  2. Posts : 22
    Windows 10
    Thread Starter
       #2

    May i... ehm... up?
      My Computer


  3. Posts : 14,019
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #3

    Barnack said:
    May i... ehm... up?
    I dunno know, looks like you did it.
      My Computers


  4. Posts : 260
    Win 10 Pro X64
       #4

    The tutorial below might give you some more pointers

    Change Windows 10 folder icons with *.ico file
      My Computer


 

  Related Discussions
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 18:35.
Find Us




Windows 10 Forums