Page 1 of 2 12 LastLast

  1. Joined : Aug 2015
    Posts : 32
    Windows 10 x64
       03 Feb 2016 #1

    Change Icons based on extension only, not the associated application.


    Hi, I want to assign a custom icon to every file type no matter what the associated app is. I can change individual default icons, but they get overwritten by the application icon. Is it possible to do this :

    And if so, how ? (I want to keep the file associations: .css and .txt are still getting open by Sublime, .ini by WordPad and so on ...)

    Thanks.
    Attached Thumbnails Attached Thumbnails 2Ppudy9.png  
    Last edited by Artist; 03 Feb 2016 at 07:35.
      My System SpecsSystem Spec


  2. Joined : Nov 2015
    Posts : 1,857
    64bit Win 10 Pro ver 1607 Build 14393.693
       04 Feb 2016 #2

    The following Microsoft Dev Centre page explains how this can be done via the Registry. (Note: I have not tested this myself in Windows 10)

    https://msdn.microsoft.com/en-gb/lib...(v=vs.85).aspx
      My System SpecsSystem Spec


  3. Joined : Aug 2015
    Posts : 32
    Windows 10 x64
       05 Feb 2016 #3

    Yeah, I did that, but it changes only the default icons. (As you can see, it worked for .rtf). But most of the time, the icons I add in the registry are overridden by the default app icon (in the example, Sublime, Edge or WordPad). I can change the app icon but it is used for all the different extensions that app opens, so that doesn't work either (unless I get a different app for every file type, but that would be absurd). Is there a way the tell Windows to NOT use the associated app icon and keep using the DefaultIcon for files?

    ie. in HKEY_CLASSES_ROOT for .css I have the default set to CSSfile and Default Icon to my custom CSS.ico

    I also have the CSSfile Default set the that same icon, something like this:

    HKEY_CLASSES_ROOT
    .css
    (Default) = CSSFile
    DefaultIcon
    (Default) = CSS.ico
    CSSFile
    DefaultIcon
    (Default) = CSS.ico
    And yet the displayed icon is still the Sublime icon. BTW there is no mention of Sublime in the registry entries of .css or CSSFile.
    Last edited by Artist; 05 Feb 2016 at 04:32.
      My System SpecsSystem Spec


  4. Joined : Jan 2015
    UK, Midlands
    Posts : 6,587
    Win 10 Pro (1607)
       05 Feb 2016 #4

    Hi, you might find this freeware program helpful:
    Click image for larger version. 

Name:	Snap 2016-02-05 at 16.45.42.jpg 
Views:	3 
Size:	48.2 KB 
ID:	62567

    If you succeed, strongly recommend you also start using disk imaging periodically, so your changes are preserved. (A great backup technique).
      My System SpecsSystem Spec


  5. Joined : Aug 2015
    Posts : 32
    Windows 10 x64
       05 Feb 2016 #5

    I think it has to do with the way some apps work. In my registry there are entries for .avi, .mpg, vlc.avi, vlc.mpg, winamp.avi, winamp.mpg. If I change the Default value of vlc.avi and vlc.mpg and associate those file types to VLC, it works: the icons reflect the the extension yet both are opened with VLC.

    But it doesn't work with Sublime. both .txt and .css files are associated with it but there are no clear entries to reflect this in the registry. (ie .css point to CSSFile which is weirdly associated with .css and .ini in DefaultProgramsEditor). Nor is there any entry like Sublime.txt and Sublime.css that could help.

    Sadly, DefaultProgramsEditor does not help here, as Sublime does NOT appear in the default programs list even though Iit does inthe "Open with ... " context menu, and if I change the icon of any file type associated with Sublime it get applied to all the others as well.
      My System SpecsSystem Spec


  6. Joined : Jan 2015
    UK, Midlands
    Posts : 6,587
    Win 10 Pro (1607)
       05 Feb 2016 #6

    Does this one help? I really can't tell as I don't have your program installed..
    Click image for larger version. 

Name:	Snap 2016-02-05 at 18.56.53.jpg 
Views:	8 
Size:	206.4 KB 
ID:	62597
    Nirsoft's software is really reliable..
      My System SpecsSystem Spec


  7. Joined : Aug 2015
    Posts : 32
    Windows 10 x64
       08 Feb 2016 #7

    Nope, it just does what the other programs do.

    I also tried adding my own keys but it doesn't matter. Weird thing is that if I change .txt default nothing happens, but if I change .css all the other icons are replaced with it, both are opened with SublimeText3. The entry for .txt says it's opened with notepad, and the .css one point to my custom SublimeText3.css entry that redirects to sublime.exe. Something, somewhere is overwriting everything ...
      My System SpecsSystem Spec


  8. Joined : Jan 2015
    UK, Midlands
    Posts : 6,587
    Win 10 Pro (1607)
       08 Feb 2016 #8

    Have you tried running the prog as admin? I'd guess you'd have to log off/on to see the effect.

    When is the icon you've entered overwritten?

    For example, if you change one icon, log off, log on, then inspect the registry/use one of those programs, do you see a change in icon?

    Repeat with a clean boot to see if sthg run on startup is having the effect you describe.

    Just some ideas as you need to diagnose what is happening. Good luck!
      My System SpecsSystem Spec


  9. Joined : Aug 2015
    Posts : 32
    Windows 10 x64
       08 Feb 2016 #9

    I see the change right away, most progs that change icons call a refresh, either on change on on exit. The icons are overwritten when I change some specific extensions, ie. using FilesTypesMan to change the Icon of .ini overwrites the custom icons of the other extensions that are opened with the same app like .css or .txt .
      My System SpecsSystem Spec


  10. Joined : Jan 2015
    UK, Midlands
    Posts : 6,587
    Win 10 Pro (1607)
       08 Feb 2016 #10

    I suspect there's a difference between when the change becomes visible- effective if you like- and when the changed registry is written back to disk. Which is why if you suddenly lose power, say, some changes you've made are lost.

    Ok, so at what point do you think your change is overwritten?
      My System SpecsSystem Spec


 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Shortcut Name Extension Template - Change in Windows
How to Change Default Shortcut Name Extension Template in Windows 7, 8, and 10 A shortcut is a link to an item (such as a file, folder, or app) on your PC. When you right click or press and hold on a file, folder, or drive and click tap on...
Tutorials
Copy Name Extension Template - Change in Windows
How to Change Default Copy Name Extension Template in Windows 7, 8, and 10 When you copy a file or folder to the same location, a copy of that file or folder will be created with the - Copy extension at the end of the filename by default. ...
Tutorials
Change Start Menu location based on number of monitors
I have two desktops (work and home) with more than one screen, on these computers, I would like my start menu on the far right side of the right screen. However, on computers with only screen (my laptop), I would like my start menu along the...
Customization
Change PC Settings Based on Location
I'm curious if it is possible to change Windows settings based on my laptop's location. What I would like is a few settings (GPOs) to change based on whether I am at home vs anywhere else. I'm guessing that detecting the wireless/wired network...
General Support
Solved User-installed Application Icons on Start Menu went away.
Yet another reason I think the W10 release was premature. By about a year! After pinning some user-installed applications to the Start Menu they looked fine. Today, all the icons that should be displayed in the buttons are gone. To determine...
Software and Apps
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 20:51.
Find Us
Twitter Facebook Google+



Windows 10 Forums