Icons for .ico files are not displayed

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Icons for .ico files are not displayed

Post by *Horst.Epp »

The icons for *.ico files are displayed blank for me in the current Window 11 version (see signature).
All other programs I tried show correct the content as icons.
Tested with:
Explorer
Everything
Free Commander
XYplorer

Wincmd.ini contains Showicons=2
This also happens with a fresh ini.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Icons for .ico files are not displayed

Post by *tuska »

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Icons for .ico files are not displayed

Post by *ghisler(Author) »

That's because TC only tries to load the icons when the DefaultIcon field is set to %1 or "%1". There is no chance to find out that there are per file icons with the registry entries in that thread.

The other apps seem to let the Explorer load all the icons, which I don't want to do because then associated icons will be shown as a sheet with a mini version of the icon in it, which is almost impossible to recognize.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Icons for .ico files are not displayed

Post by *tuska »

ghisler(Author) wrote: 2022-12-07, 08:19 UTC Sie können es wie folgt manuell ändern:
1. Regedit.exe starten
2. Im Pfadfeld oben folgendes einfügen:
Computer\HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\DefaultIcon
3. Im rechten Fenster auf (Standard) doppelklicken und den Eintrag dort ersetzen durch:
%1

Der Originaleintrag ist ein Symbol einer App:
@{Microsoft.Windows.Photos_2022.31110.14005.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Files/Images/PhotosLogoExtensions.png}
ghisler(Author) wrote: 2022-12-07, 08:19 UTC You can change it manually as follows:
1. Start Regedit.exe
2. In the path field above, insert the following:

Code: Select all

Computer\HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\DefaultIcon
3. In the right-hand window, double-click on (Default) and replace the entry there with:

Code: Select all

%1
The original entry is a symbol of an app:
@{Microsoft.Windows.Photos_2022.31110.14005.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Files/Images/PhotosLogoExtensions.png}
The change worked for me immediately and without a PC or TC restart!
Thanks a lot!


Windows 11 Pro (x64) Version 22H2 (OS build 22621.900) | TC 10.52 x64/x86
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Icons for .ico files are not displayed

Post by *ghisler(Author) »

This should be fixed in TC 11 beta, please test it. The problem was that the .ico files were associated with a Windows App (not a desktop program).
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Icons for .ico files are not displayed

Post by *tuska »

ghisler(Author) wrote: 2023-05-03, 19:23 UTC This should be fixed in TC 11 beta, please test it. ...
Thanks for the bugfix (still untested by me)!

Mmh, the display of the icons works for me with the/your above registry entry (unchanged since then).
I would also like to leave it at that.

@Horst.Epp
Can you please check this issue again and confirm the bugfix?
___________________________________
[Otherwise I need a test scenario please].
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Icons for .ico files are not displayed

Post by *ghisler(Author) »

2tuska
You could change the registry key back to
@{Microsoft.Windows.Photos_2022.31110.14005.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Files/Images/PhotosLogoExtensions.png}
to check whether it still shows icons then. If not, you can simply change it back to %1.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Icons for .ico files are not displayed

Post by *tuska »

2ghisler(Author)
Thank you for posting the test scenario.
  1. TC started as administrator
  2. regedit.exe <ENTER> entered in the TC command line
  3. Entered the following in the Regedit - path field and pressed ENTER:

    Code: Select all

    Computer\HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\DefaultIcon
  4. Surprise! This value was already there (instead of %1):

    Code: Select all

    @{Microsoft.Windows.Photos_2022.31060.30005.0_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Windows.Photos/Files/Assets/PhotosLogoExtensions.png}
  5. Default app for file type ICO still detected: Windows Photo viewer (German: Windows-Fotoanzeige)
According to my current understanding - thank you for the bugfix and your efforts! :)
HISTORY.TXT wrote:03.05.23 Release Total Commander 11.00 beta 1
30.01.23 Fixed: No per file icon images for .ico files were shown on Windows 11, due to file association with Windows app (32/64)

Windows 11 Pro (x64) Version 22H2 (OS build Build 22621.1635) | TC 11.00b1 x64/x86 portable in C:\totalcmd
See also: ICON Symbole werden nicht angezeigt
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Icons for .ico files are not displayed

Post by *ghisler(Author) »

Great, thanks for checking!
Author of Total Commander
https://www.ghisler.com
Post Reply