How to change a File Type icon with Regedit?
When no custom default icon is assigned to a file type, the desktop and Windows Explorer display all files of that type with a generic default icon. For example, the following screen shot shows this default icon used with the MyDocs4.myp file.
While all the files displayed in this screen shot are simple text files, only MyDocs4.myp displays the Windows default icon. This is because the .txt extension is a registered file type that has a custom default icon.
The following screen shot shows a custom icon that has been assigned to the .myp file type.
Step 1: Running Regedit.exe
Press Windows Key + R
Type REGEDIT and click OK.
In this example I will customize the .zip files.
Go to, HKEY_CLASSES_ROOT then go down to Winzip.
Expand and Click on Default Icon .
Double click in the key and type the path where is the icon you want to use. In my case the value is:
- For a file-type assignment, HKEY_CLASSES_ROOT.extension
- For an application assignment, HKEY_CLASSES_ROOTProgID
In my Windows 10 system the default zip icons remains so my solution was this:
- Right click in any .zip file.
- Open with - Choose "Choose another app"
- In the list choose Winzip program.
- Check "Always choose this app to open .zip files"
- Click OK.
The following example shows a detailed view of the registry entries that are required for a file-type icon assignment. The file name extension is associated with an application, but the icon assignment is to the file name extension itself so that the associated application does not dictate the default icon.
HKEY_CLASSES_ROOT .myp (Default) = MyProgram.1 DefaultIcon (Default) = C:MyDirMyProgram.exe,2
The following example shows a detailed view of the registry entries that are required for an application icon assignment. The .myp file name extension is first associated with the MyProgram.1 application. The MyProgram.1 ProgID subkey is then assigned the custom default icon.
HKEY_CLASSES_ROOT .myp (Default) = MyProgram.1 MyProgram.1 DefaultIcon (Default) = C:MyDirMyProgram.exe,2
Any file that contains an icon is acceptable, including .ico, .exe, and .dll files. If there is more than one icon in the file, the path should be followed by a comma, and then the index of the icon.