Icons of Excel disappeared

English support forum

Moderators: Stefan2, white, sheep, Hacker

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

Re: Icons of Excel disappeared

Post by *Abel D. » 2019-06-29, 08:27 UTC

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: 8429
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Icons of Excel disappeared

Post by *petermad » 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: 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 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b6 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Usher
Senior Member
Senior Member
Posts: 413
Joined: 2011-03-11, 10:11 UTC

Re: Icons of Excel disappeared

Post by *Usher » 2019-06-29, 20:59 UTC

@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.
Regards from Poland
Andrzej P. Wozniak

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

Re: Icons of Excel disappeared

Post by *Abel D. » 2019-06-29, 22:43 UTC

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: 8429
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Icons of Excel disappeared

Post by *petermad » 2019-06-30, 13:11 UTC

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 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b6 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Usher
Senior Member
Senior Member
Posts: 413
Joined: 2011-03-11, 10:11 UTC

Re: Icons of Excel disappeared

Post by *Usher » 2019-06-30, 13:40 UTC

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 UTC
I 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…
Regards from Poland
Andrzej P. Wozniak

User avatar
petermad
Power Member
Power Member
Posts: 8429
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Icons of Excel disappeared

Post by *petermad » 2019-06-30, 17:18 UTC

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 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b6 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

Post Reply