[8.0ß23] Missing file icons in Win 8

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

[8.0ß23] Missing file icons in Win 8

Post by *umbra »

TC doesn't show icons for some file types. From a few tests I think this applies only to file types registered to open in Metro applications. Also I have noticed, that files in virtual folders have proper icons.
Image: http://i1057.photobucket.com/albums/t399/uumbra8/TC/bugs/Win8icons.png

Tested both 32b and 64b versions of TC8.0 beta 23 on Windows 8 CP.
Last edited by umbra on 2012-03-29, 19:27 UTC, edited 1 time in total.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I haven't checked that yet - the normal Windows functions to extract icons may not work with Metro apps.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Beta 24 works fine, thanks.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks! The problem was that the "DefaultIcon" entry contained really strange data like this:

Code: Select all

@{Microsoft.Reader_6.2.8232.0_x86__8wekyb3d8bbwe?ms-resource://Microsoft.Reader/Files/Images\ReaderFileLogo.png}
I have no idea how to handle that, so I just call GetFileInfo() now with the extension to get the class icon.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Hi. Metro-style apps are archives/folders, not binaries. And the code in your example is a path to an icon inside such registered app. Your example in reality points to

Code: Select all

"%ProgramFiles%\WindowsApps\Microsoft.Reader_6.2.8232.0_x86__8wekyb3d8bbwe\Images\ReaderFileLogo.png"
However I could not find more useful information on that. But your approach seems to be good.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the info! I tried to find a function to access this "ms-resource" URL type, but couldn't find anything so far.
Author of Total Commander
https://www.ghisler.com
Post Reply