TC shows Irfanview icon regardless of what icon is set

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

TC shows Irfanview icon regardless of what icon is set

Post by *Rekrul »

When various image formats are associated with Irfanview under XP Pro, SP3, TC shows the default Irfanview icon, regardless of what icon the file type is set to.

I can set the icons to anything I want and they show up in Explorer. They show up in Free Commander. They show in every program, EXCEPT Total Commander! Every image type that's associated with Irfanview has that stupid squashed cat icon.

I've tried changing the icons via Folder Options, via WAssociate, etc. Nothing works. The only way to get TC to show the default icon is to cancel the association with Irfanview. I even thought that maybe the internal association I made might be affecting it, so I deleted all reference to Iview.exe from the INI file. Nope, it still shows the damn cat icon!!!

Note that this does NOT happen with other programs, such as Media Player Classic and video files. I can change those files to any icon I want and TC will happily display it.

If it makes a difference, I used the portable version of Irfanview. I just made a directory for it and unpacked to my hard drive. However, like I said above, every other program shows the correct icon, except TC. In fact, even if I change the icon in Irfanview's options, TC still shows the roadkill cat icon.

Why???
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Rekrul,
Try changing the setting using TC's Files - Associate With.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Post by *Rekrul »

Hacker wrote:Rekrul,
Try changing the setting using TC's Files - Associate With.
That doesn't make any difference. Also, I've since discovered that the problem isn't just with Irfanview, it seems to be with any image viewer. I also tried XNView and the same thing happened. I was able to change the icon to whatever I wanted in Explorer and other programs, but TC insisted on showing the default program icon.

Here's a screenshot;

[img]http://img521.imageshack.us/img521/1929/clipboard01jp.png[/img]

Front to back are Explorer, Free Commander & Total Commander.

Yes, I searched out the old image icons. I got used to them on my old system and it just makes things easier to have the icons I'm used to. However, the exact same thing happens with the default XP icons as well.

As long as image files are associated with a third-party viewer program, TC won't show any icon other than the default one for that program. I even tried deleting the JPG extension completely from Folder Options and then associating it with Irfanview. No difference.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Not confirmed. Using IrfanView 4.33, TC 8 and Win7 x64 it works just fine. When I enabled different icons for different file types in IrfanView (using Icons plugin) and restarted TC, it was showing proper icons, just like any other file manager.
Windows 10 Pro x64, Windows 11 Pro x64
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Post by *Rekrul »

umbra wrote:Not confirmed. Using IrfanView 4.33, TC 8 and Win7 x64 it works just fine. When I enabled different icons for different file types in IrfanView (using Icons plugin) and restarted TC, it was showing proper icons, just like any other file manager.
I have Irfanview 4.33, I have all the plugins in the plugins dir, including icons.dll, the only difference is that TC is 7.57a, rather than 8.0. However, just to verify, I tried it under 8.0 as well. I checked the different icons option in Irfanview and it did use different icons, but they were still a variation on the cat icon. It didn't show the normal icons. I tried just checking the box for leaving the default icons. No difference. I tried checking both boxes. No difference.

[img]http://img707.imageshack.us/img707/9873/clipboard02gq.png[/img]

Again, here's Explorer, Free Commander and TC757a. Note that the Default icons option is checked in Irfanview. Also note that I selected the sunset icon, but TC is still showing the cat icon. Yes, I clicked OK to set the options before taking this screenshot. I then re-opened it to get the image. And yes, I restarted TC to make sure that it noticed the change.

As long as image files are associated with a third-party viewer, TC will not show the normal icons. It doesn't matter what the program, TC uses the main program icon as the file icon.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Rekrul,
What are your settings under Configuration - Options - Icons?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2Rekrul
This is how it should look like, when you select different icons for different file types:
Image: http://i1057.photobucket.com/albums/t399/uumbra8/TC/5-6-irfan.png

I also tried other standard icons from that dialog and it always worked, regardless of TC version.
I don't have WinXP, so I can't test it there, plus I have no idea what the "Leave current extension icon (Windows XP only)" option does (it has no effect on my system).

So my suggestions:
1. Set a non-default icon for images
2. Start TC with a fresh ini (it might be some forgotten setting)
3. If it still doesn't work, check your registry, if the proper icon is set there

Here is a part of my registry that describes a default icon for JPG files in the picture above. It might look different on your computer - I'm not sure if something changed between WinXP and Win7 or not.

Code: Select all

HKEY_CLASSES_ROOT\.jpg    (Default) = "IrfanView.JPG"
HKEY_CLASSES_ROOT\IrfanView.jpg\DefaultIcon    (Default) = "C:\Program Files (x86)\IrfanView\Plugins\ICONS.DLL,14"
Windows 10 Pro x64, Windows 11 Pro x64
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Post by *Rekrul »

Hacker wrote:What are your settings under Configuration - Options - Icons?
[img]http://img842.imageshack.us/img842/6453/clipboard03i.png[/img]

I've tried all the various options. When set to "Only standard icons", TC shows a blank white icon for all data files (images, text, videos, etc). There's no difference between "All associated + EXE/LNK" and "All associated".
umbra wrote:This is how it should look like, when you select different icons for different file types:
Image: http://i1057.photobucket.com/albums/t399/uumbra8/TC/5-6-irfan.png
That option worked exactly once for me. Now, no matter what I do, it doesn't work. Also, the one time that it did work, the icon for jpegs was still the main cat one, not the labeled one.
umbra wrote:So my suggestions:
1. Set a non-default icon for images
2. Start TC with a fresh ini (it might be some forgotten setting)
Thanks for the suggestion, but it didn't work. Same icon.
umbra wrote:3. If it still doesn't work, check your registry, if the proper icon is set there

Here is a part of my registry that describes a default icon for JPG files in the picture above. It might look different on your computer - I'm not sure if something changed between WinXP and Win7 or not.

Code: Select all

HKEY_CLASSES_ROOT\.jpg    (Default) = "IrfanView.JPG"
HKEY_CLASSES_ROOT\IrfanView.jpg\DefaultIcon    (Default) = "C:\Program Files (x86)\IrfanView\Plugins\ICONS.DLL,14"
Ok, I checked the registry. Here's the entry for .JPG;

Code: Select all

[HKEY_CLASSES_ROOT\.jpg]
"PerceivedType"="image"
@="jpegfile"
"Content Type"="image/jpeg"

[HKEY_CLASSES_ROOT\.jpg\OpenWithProgids]
"jpegfile"=hex(0):
Here's the entry for Irfanview.jpg;

Code: Select all

[HKEY_CLASSES_ROOT\IrfanView.JPG]
@="IrfanView JPG File"

[HKEY_CLASSES_ROOT\IrfanView.JPG\shell]

[HKEY_CLASSES_ROOT\IrfanView.JPG\shell\open]

[HKEY_CLASSES_ROOT\IrfanView.JPG\shell\open\command]
@=""c:\\Program Files\\Irfanview\\i_view32.exe" "%1""
No default icon specified. However, here's the entry for .GIF;

Code: Select all

[HKEY_CLASSES_ROOT\.gif]
"PerceivedType"="image"
@="IrfanView.GIF"
"Content Type"="image/gif"

[HKEY_CLASSES_ROOT\.gif\OpenWithProgids]
"giffile"=hex(0):

[HKEY_CLASSES_ROOT\.gif\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
And for Irfanview.gif;

Code: Select all

[HKEY_CLASSES_ROOT\IrfanView.GIF]
@="IrfanView GIF File"

[HKEY_CLASSES_ROOT\IrfanView.GIF\DefaultIcon]
@="C:\\Program Files\\Irfanview\\Plugins\\ICONS.DLL,10"

[HKEY_CLASSES_ROOT\IrfanView.GIF\shell]

[HKEY_CLASSES_ROOT\IrfanView.GIF\shell\open]

[HKEY_CLASSES_ROOT\IrfanView.GIF\shell\open\command]
@=""C:\\Program Files\\Irfanview\\i_view32.exe" "%1""
Despite the differences between the two entries, they behave exactly the same; They both load Irfanview when double-clicked from anywhere in the system, they both display my custom icon from everywhere in the system, except in TC.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Rekrul wrote:That option worked exactly once for me. Now, no matter what I do, it doesn't work.
That is weird. I have no idea what's going on on your system.
Rekrul wrote:Also, the one time that it did work, the icon for jpegs was still the main cat one, not the labeled one.
According to the registry keys you posted, GIF files should have an icon from the Icons plugin. But for some reason, your JPG files are using an icon referenced in a standard key "HKEY_CLASSES_ROOT\jpegfile\DefaultIcon". Again, no idea why it's not using "HKEY_CLASSES_ROOT\IrfanView.JPG\DefaultIcon", especially if that file type is registered with IrfanView. Sorry.
Windows 10 Pro x64, Windows 11 Pro x64
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Post by *Rekrul »

I managed to fix it. Actually, it was a stroke of luck that allowed me to do it.

While fooling around with the folder options, I managed to get the custom icon for GIF files to show up in TC. I have no idea how it happened. I couldn't make any of the others work though. Also, I discovered that I couldn't get custom icons to show up for mpeg files either.

Anyway, I used WAssociate and compared the entries for GIF and JPG (and PNG, etc) and saw that they were quite different. So I manually edited the other entries to match the one for GIF, only altering them as needed. That seems to have worked. I'm not sure why they were so different in the first place when I used the exact same process to associate all the different file types.

I then applied the same process to mpeg files. I looked up the entry for AVI, which did show the custom icon, and then changed the mpeg entries (MPG, MPEG, MPE) to match.

Now all my custom icons show up in TC and call the appropriate program when double-clicked. I'll probably add more in the future, but at least now I have a blueprint for how to do it.

At first I was a little reluctant to start changing stuff, but I figured at worst I'd just have to go in an re-associate the files again.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2Rekrul
Glad to hear that. I was going to suggest you resetting all associations and reinstalling IrfanView, but since you got it working, it's no longer necessary. :)
Windows 10 Pro x64, Windows 11 Pro x64
CrazyCoder
New Member
New Member
Posts: 1
Joined: 2022-07-13, 21:14 UTC

Re: TC shows Irfanview icon regardless of what icon is set

Post by *CrazyCoder »

I just had the same issue where Settings | Extensions | Icons | Use different icons (Icons-Plugin) did not have any effect. The solution was to start IrfanView as Administrator and tick this option again so that it can actually update the registry.
Post Reply