Icons of Excel disappeared

English support forum

Moderators: white, Hacker, petermad, Stefan2

Abel D.
Junior Member
Junior Member
Posts: 12
Joined: 2019-06-23, 09:15 UTC

Re: Icons of Excel disappeared

Post by *Abel D. »

I checked my second system in my work (before update 1903) and I'm dumb now. There I have:
HKEY_CLASSES_ROOT\.jpg = IrfanView.jpg
and in
HKEY_CLASSES_ROOT\IrfanView.jpg\DefaultIcon = C:\Program Files (x86)\IrfanView\i_view32.exe,0

but association of jpg files in Windows 10 and in TC is with Photoviewer and icon is Photoviewer ini Windows 10 AND TC.

So, it looks like registry icon association doesn't work this way?

EDIT: I tried to find out, and I changed HKEY_CLASSES_ROOT\.jpg to IrfanView.jpg (and restarted Windows 10 of course)
Now I have IrfanView icon in Explorer and TC :?

In Windows 10 in "Default applications" I have none (choose default)

To be more fun, png files are now associated with Photoviewer, but HKEY_CLASSES_ROOT\.png is IrfanView.png
and HKEY_CLASSES_ROOT\IrfanView.png\DefaultIcon is C:\Program Files\IrfanView\i_view64.exe,0 :shock:
Icon for png is Photoviewer in Explorer and white icon in TC.

EDIT 2: I restored previous version of registry, because I couldn't set the default graphic files for Photoviewer in Windows. I choosed Photoviewer and nothing happened. Tried to do it another way as well - right click on jpg file, choosed "Choose another application", marked "Always choose" and... nothing as well.
Frustrating, so I restored registry. I prefer to have white icon in TC only...
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Icons of Excel disappeared

Post by *petermad »

Abel D. wrote: ↑
Friday 28-06-2019, 17:48:55
After finding [HKEY_CLASSES_ROOT\.jpg] in regedit I have: https://i.imgur.com/q7tHhUZ.jpg

I have NEVER seen such an association before.
I have such an "Applications\photoviewer.dll" accociation for .gif files but under WIndows 7 - in Windows 10 I have one of those unreadable "App...." associations - In Windows 10 .gif files are opened with PhotoViewer, but I do not have the PhotoViewer icon (just as Abel D. doesn't have for .jpg).

In Explorer under Windows I do see a PhotoViewer icon for GIF files but not the original icon: from C:\Windows\System32\imageres.dll: http://madsenworld.dk/tcmd/gifIcon.png - but in stead i see the icon embedded in "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll": http://madsenworld.dk/tcmd/PhotoViewerIcon.png (which Abel D. also have for .jpg)

Here is what I see in Windows 10 in Explorer and TC:
http://madsenworld.dk/tcmd/win10explorerIcons.png
http://madsenworld.dk/tcmd/win10tcIcons.png

And here is what I see in Windows 7 in Explorer and TC:
http://madsenworld.dk/tcmd/win7explorerIcons.png
http://madsenworld.dk/tcmd/win7tcIcons.png

According to the Regsitry for both Win10 and Win 7 the default icons for:
giffile is: %SystemRoot%\System32\imageres.dll,-71 = http://madsenworld.dk/tcmd/gifIcon.png
jpegfile is: %SystemRoot%\System32\imageres.dll,-72 = http://madsenworld.dk/tcmd/jpgIcon.png
pngfile is: %SystemRoot%\System32\imageres.dll,-83 = http://madsenworld.dk/tcmd/pngIcon.png
paint.Picture (bmp)is: %SystemRoot%\System32\imageres.dll,-70 = http://madsenworld.dk/tcmd/bmpIcon.png

---------

You can try this:
1. Download http://madsenworld.dk/tcmd/jpegfile.reg
2. Make a backup of:
[HKEY_CLASSES_ROOT\jpegfile]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jpegfile]
3. Double click on the downloaded jpegfile.reg file to update your Registry.
4. Put the cursor on a jpg file in TC.
5. Chose "File" -> "Associate With...".
6. Find and click on the entry: JPEG Image (C:\WINDOWS\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1)
7. Click OK.
8. double click on a jpg file, you might have to re-associate the file to PhotoViewer if asked.

If that doesn't work try this:
1. Download http://madsenworld.dk/tcmd/photoviewer_fileassoc.reg
2. Nothing to backup
3-5: As above.
6: Find and click on the entry: PhotoViewer.FileAssoc.Jpeg (C:\windows\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1)
7-8: As above.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Icons of Excel disappeared

Post by *Usher »

@Abel D.
Associations like ".jpg -> jpegfile" are one of oldest Windows features. There have been other ways of association introduced later, f.e. shell extensions with registered classes (see HKEY_ROOT\CLSID branch), which have higher priority in Windows Explorer. And you can also register extensions in TC and this association has the highest priority in TC.

@petermad
In Windows 8+ those associations with App-IDs (probably encoded with Base64) for apps from Windows Store create another level of priority. What is more, some associations seem to be somehow protected. For example, some Windows 10 builds force association PDF with Edge. I was trying to change this association to SumatraPDF - installed as a desktop program and as an app from Windows Store - and both versions failed.
Andrzej P. Wozniak
Polish subforum moderator
Abel D.
Junior Member
Junior Member
Posts: 12
Joined: 2019-06-23, 09:15 UTC

Re: Icons of Excel disappeared

Post by *Abel D. »

petermad wrote: 2019-06-29, 19:59 UTC You can try this:
1. Download http://madsenworld.dk/tcmd/jpegfile.reg
2. Make a backup of:
[HKEY_CLASSES_ROOT\jpegfile]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jpegfile]
3. Double click on the downloaded jpegfile.reg file to update your Registry.
4. Put the cursor on a jpg file in TC.
5. Chose "File" -> "Associate With...".
6. Find and click on the entry: JPEG Image (C:\WINDOWS\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1)
7. Click OK.
8. double click on a jpg file, you might have to re-associate the file to PhotoViewer if asked.
It works! Thank you! I did it the same for gif files and it works as well first, but today it doesn't work. Weird.
I tried to do it for jpeg file, but it doesn't work.
I know it's a long shot, but if I would knew how to do it for other graphic files (gif, png, jpeg), I would be grateful as well.

In Windows 10 in "Default applications" for graphic files I have none (choose default), but it doesn't matter, because in Explorer graphic files open with Photoviewer and icons are right.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Icons of Excel disappeared

Post by *petermad »

2Usher
some Windows 10 builds force association PDF with Edge. I was trying to change this association to SumatraPDF - installed as a desktop program and as an app from Windows Store - and both versions failed.
Hmm - I have had no trouble associating .pdf with Adobe Acrobat Reader in both the 1809 and the 1903 version of Windows 10.

Actually I haven't had any problems re-assigning most other file types to "normal" desktop applications in stead of those extremely slow Metro Apps (at least they are slow on the old laptop that I use for testing Windows 10 - I still cannot see myself using Windows 10 as a serious work environment - sad that support for Win 7 stops next year :-( )
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Icons of Excel disappeared

Post by *Usher »

petermad wrote: 2019-06-30, 13:11 UTC Hmm - I have had no trouble associating .pdf with Adobe Acrobat Reader in both the 1809 and the 1903 version of Windows 10.
But what Adobe Reader version?

I don't remember details in my case, but I'm pretty sure I have SumatraPDF 64-bit installed. So it was possibly some Insider build rather then well known bug caused by KB4462919:
https://support.microsoft.com/en-us/help/4462919/windows-10-update-kb4462919

petermad wrote: 2019-06-30, 13:11 UTCI still cannot see myself using Windows 10 as a serious work environment - sad that support for Win 7 stops next year :-( )
Nothing more to add…
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Icons of Excel disappeared

Post by *petermad »

But what Adobe Reader version?
It's Adobe Acrobat Reader DC version 2019.012.20035 that I am currently ruinneing (32bit)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
CroRob
New Member
New Member
Posts: 1
Joined: 2020-08-26, 07:53 UTC

Re: Icons of Excel disappeared

Post by *CroRob »

petermad wrote: 2019-06-29, 19:59 UTC
Abel D. wrote: ↑
Friday 28-06-2019, 17:48:55
After finding [HKEY_CLASSES_ROOT\.jpg] in regedit I have:

I have NEVER seen such an association before.
I have such an "Applications\photoviewer.dll" accociation for .gif files but under WIndows 7
....
..
.
Thank you very much.

I am using Total Commander Ultima Prime 7.8 with latest Windows 10 and I cannot get working file association with it to jpg files. I am using Honeyview for images and TCUP was always asking for default program.

The jpegfile.reg solved my problem.
Winneone
New Member
New Member
Posts: 1
Joined: 2021-01-23, 17:09 UTC

Re: Icons of Excel disappeared

Post by *Winneone »

Hello,
since I updated to 9.51, I have a similar problem. At one (!) of my computers the icon in the file list windows shows only as a white rectagle with a little bonded corner, like the *.txt icon but without the lines.
In my case, it is the *.mp4 extension. I use VLC to open it, and the icon in the explorer is shown correctly.
I couldn't find any *.ini or *.icl file on my win10 computers (winver 20H2) that might be editable or comparable with the other computer.
Reinstalling TC and VLC doesn't make any change.
Any suggestions?
Thank you in advance, stay healthy
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: Icons of Excel disappeared

Post by *sqa_wizard »

Winneone: Do other icons show correctly at TC on this computer?
Last edited by sqa_wizard on 2021-01-24, 09:45 UTC, edited 1 time in total.
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Icons of Excel disappeared

Post by *ghisler(Author) »

2sqa_wizard
Please use my tool RegistryInfo to gather information about the misbehaving file association, then please post it here:
https://www.totalcommander.ch/win/registryinfo.zip
Author of Total Commander
https://www.ghisler.com
Post Reply