No icon for Win 10 PDF Reader files

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jkauff
Junior Member
Junior Member
Posts: 22
Joined: 2004-03-11, 14:06 UTC

No icon for Win 10 PDF Reader files

Post by *jkauff »

I'm using the built-in Win 10 app Reader for my .pdf files, but in the file list the Reader icon isn't showing for .pdf docs. It displays correctly in File Explorer.

I'm on the new Creator's Edition (1703) running TC 9.0a 64-bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Could you please use Regedit to export the following keys with all subkeys, and post them here?
1. HKEY_CLASSES_ROOT\.pdf
2. The key .pdf points to via (default) value. It depends on the installed PDF viewer.
3. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf
This last key only exists if the user changed the association manually.
Author of Total Commander
https://www.ghisler.com
jkauff
Junior Member
Junior Member
Posts: 22
Joined: 2004-03-11, 14:06 UTC

Post by *jkauff »

[HKEY_CLASSES_ROOT\.pdf]
@="AcroExch.Document.DC"

[HKEY_CLASSES_ROOT\.pdf\OpenWithList]

[HKEY_CLASSES_ROOT\.pdf\OpenWithList\Winword.exe]
@=""

[HKEY_CLASSES_ROOT\.pdf\OpenWithProgids]
"AppX86746z2101ayy2ygv3g96e4eqdf8r99j"=hex(0):
"AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723"=hex(0):
"calibre64bit.AssocFile.PDF"=hex(0):
"calibreViewer64bit.AssocFile.PDF"=hex(0):
"ChromeHTML"=""
"FirefoxHTML"=""

[HKEY_CLASSES_ROOT\.pdf\PersistentHandler]
@="{1AA9BF05-9A97-48c1-BA28-D9DCE795E93C}"


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList]
"a"="Microsoft.Reader_8wekyb3d8bbwe!Microsoft.Reader"
"MRUList"="ba"
"b"="firefox.exe"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithProgids]
"AcroExch.Document.DC"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice]
"Hash"="OBaD22Hppyo="
"ProgId"="AppXem3wszaz778rxas8we2hmd4b54mppwss"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

UserChoice points to:
AppXem3wszaz778rxas8we2hmd4b54mppwss

Therefore please also export the following registry key:
HKEY_CLASSES_ROOT\AppXem3wszaz778rxas8we2hmd4b54mppwss
Author of Total Commander
https://www.ghisler.com
jkauff
Junior Member
Junior Member
Posts: 22
Joined: 2004-03-11, 14:06 UTC

Post by *jkauff »

That key doesn't exist. Is that the problem?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it's a problem. TC looks there for the icon. I wonder how Windows 10 finds the associated PDF reader in this case. There are a few more in OpenWithProgids, but they are usually only used for the "Open with" submenu. And there is also "Microsoft.Reader_8wekyb3d8bbwe!Microsoft.Reader" in OpenWithList.

What happens when you rename the UserChoice key to for example UserChoice1 (so Windows doesn't find it)?
Author of Total Commander
https://www.ghisler.com
jkauff
Junior Member
Junior Member
Posts: 22
Joined: 2004-03-11, 14:06 UTC

Post by *jkauff »

I re-installed Acrobat Reader for the time being. I now have two entries in HKEY_CLASSES_ROOT:

AppX86746z2101ayy2ygv3g96e4eqdf8r99j (Application: Microsoft Reader)

and

AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 (Application: Adobe Reader)

Manually changing the Open With default application to Microsoft Reader doesn't change the icon in TC--it's still the Adobe icon. File Explorer shows the Microsoft icon.

Here's an export of the Microsoft entry:



[HKEY_CLASSES_ROOT\AppX86746z2101ayy2ygv3g96e4eqdf8r99j]
"EditFlags"=dword:00010000

[HKEY_CLASSES_ROOT\AppX86746z2101ayy2ygv3g96e4eqdf8r99j\Application]
"ApplicationName"="@{Microsoft.Reader_6.4.9926.18589_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Reader/resources/ShortDisplayName}"
"ApplicationCompany"="Microsoft Corporation"
"ApplicationIcon"="@{Microsoft.Reader_6.4.9926.18589_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Reader/Files/Images/ReaderSmallLogo.png}"
"ApplicationDescription"="ms-resource:Description"
"AppUserModelID"="Microsoft.Reader_8wekyb3d8bbwe!Microsoft.Reader"

[HKEY_CLASSES_ROOT\AppX86746z2101ayy2ygv3g96e4eqdf8r99j\DefaultIcon]
@="@{Microsoft.Reader_6.4.9926.18589_x64__8wekyb3d8bbwe?ms-resource://Microsoft.Reader/Files/Images/ReaderFileLogo.png}"

[HKEY_CLASSES_ROOT\AppX86746z2101ayy2ygv3g96e4eqdf8r99j\Shell]
@="open"

[HKEY_CLASSES_ROOT\AppX86746z2101ayy2ygv3g96e4eqdf8r99j\Shell\open]
"ActivatableClassId"="Microsoft.Reader.AppXqwpk1t4bvqdvwhxhbyg53psw2e2hmdrd.mca"
"PackageId"="Microsoft.Reader_6.4.9926.18589_x64__8wekyb3d8bbwe"
"ContractId"="Windows.File"
"DesiredInitialViewState"=dword:00000002

[HKEY_CLASSES_ROOT\AppX86746z2101ayy2ygv3g96e4eqdf8r99j\Shell\open\command]
"DelegateExecute"="{4ED3A719-CEA8-4BD9-910D-E252F997AFC2}"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, it's all a big mess, and Microsoft doesn't explain in which order these are used. :(
Author of Total Commander
https://www.ghisler.com
jkauff
Junior Member
Junior Member
Posts: 22
Joined: 2004-03-11, 14:06 UTC

Post by *jkauff »

I have no idea how you would get to it, but I assume the file you want is ReaderSmallLogo.png.

I don't know, but I'm guessing this problem would be the same with any of the Win 10 built-in apps.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC uses DefaultIcon, but the PNG is in ApplicationIcon key...
Author of Total Commander
https://www.ghisler.com
jkauff
Junior Member
Junior Member
Posts: 22
Joined: 2004-03-11, 14:06 UTC

Post by *jkauff »

Maybe MS Reader is not updating DefaultIcon. That would explain why I still see the Adobe icon in TC when Adobe Reader is installed, but choose MS Reader as the default. When I uninstall it, I get a blank icon.
Post Reply