Wrong Icon for .url-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
rsa
Junior Member
Junior Member
Posts: 57
Joined: 2003-11-19, 20:41 UTC

Wrong Icon for .url-Files

Post by *rsa »

Total Commander (x64) 9.0a shoes an Internet Explorer-Icon for .url-Files where Firefox is the default browser.
The Windows Explorer (Windows 10, 64 Bit, Creators Update) shows a Firefox-Icon.

Note: For .html-Files Total Commander shows the correct Firefox-Icon!

Image: https://www2.pic-upload.de/img/32986174/TCURL-Icon.png

I found the thread TC7: URL icon in panel is not that of the default browser. If I understand it right, Total Commander should use DefaultIcon.

Code: Select all

Computer\HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon
@="%SystemRoot%\system32\url.dll,5"
However, url.dll doesn't have the icon shown in Total Commander in index 5: Image: https://www2.pic-upload.de/img/32986416/TCIcons.png

I found the key "Computer\HKEY_CLASSES_ROOT\IE.AssocFile.URL\DefaultIcon" in the registry, which has icon index 0 ("C:\Windows\System32\url.dll,0").
I don't understand, how all this works and why there is a wrong icon in Total Commander.

Note: I think, I had a correct Firefox-Item for .url-Files in the past, but I'm not sure and I don't know, if it was with an older version of Total Commander and with an older Version of Windows (at lease before the Creators Update).

Here my settings in Total Commander: Image: https://www2.pic-upload.de/img/32986180/TCKonfigIcons.png

For me it would be nice, to have the (correct) Firefox-Icon and the same behaviour like in the Windows Explorer.
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\.url
2. The key .url points to via (default) value. By default, this is:
HKEY_CLASSES_ROOT\InternetShortcut
3. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.url
This last key only exists if the user changed the association manually.
Author of Total Commander
https://www.ghisler.com
rsa
Junior Member
Junior Member
Posts: 57
Joined: 2003-11-19, 20:41 UTC

Post by *rsa »

Here my registry entries:

Computer\HKEY_CLASSES_ROOT\.URL

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.URL]
@="InternetShortcut"

[HKEY_CLASSES_ROOT\.URL\OpenWithProgIds]
"InternetShortcut"=""

[HKEY_CLASSES_ROOT\.URL\PersistentHandler]
@="{8CD34779-9F10-4f9b-ADFB-B3FAEABDAB5A}"

[HKEY_CLASSES_ROOT\.URL\ShellEx]

[HKEY_CLASSES_ROOT\.URL\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"

[HKEY_CLASSES_ROOT\.URL\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"

[HKEY_CLASSES_ROOT\.URL\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"

[HKEY_CLASSES_ROOT\.URL\ShellEx\{CABB0DA0-DA57-11CF-9974-0020AFD79762}]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"

[HKEY_CLASSES_ROOT\.URL\ShellEx\{FBF23B80-E3F0-101B-8488-00AA003E56F8}]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"


Computer\HKEY_CLASSES_ROOT\InternetShortcut

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\InternetShortcut]
"EditFlags"=dword:00000002
"FriendlyTypeName"="@C:\\WINDOWS\\system32\\ieframe.dll,-10046"
"FullDetails"="prop:System.Link.TargetUrl;System.Rating;System.Link.Description;System.Link.Comment"
"InfoTip"="prop:System.Link.TargetUrl;System.Rating;System.Link.Description;System.Link.Comment"
"IsShortcut"=""
"NeverShowExt"=""
"PreviewDetails"="prop:System.Link.TargetUrl;System.Rating;System.History.VisitCount;System.History.DateChanged;System.Link.DateVisited;System.Link.Description;System.Link.Comment"
@="Internetverknüpfung"

[HKEY_CLASSES_ROOT\InternetShortcut\CLSID]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"

[HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,75,00,72,00,\
  6c,00,2e,00,64,00,6c,00,6c,00,2c,00,35,00,00,00

[HKEY_CLASSES_ROOT\InternetShortcut\shell]
"CLSID"="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
@="open"

[HKEY_CLASSES_ROOT\InternetShortcut\shell\Open]
"CLSID"="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
"LegacyDisable"=""

[HKEY_CLASSES_ROOT\InternetShortcut\shell\Open\Command]
@="\"C:\\WINDOWS\\system32\\rundll32.exe\" \"C:\\WINDOWS\\system32\\ieframe.dll\",OpenURL %l"

[HKEY_CLASSES_ROOT\InternetShortcut\shell\print]

[HKEY_CLASSES_ROOT\InternetShortcut\shell\print\command]
@="\"C:\\Windows\\System32\\rundll32.exe\" \"C:\\Windows\\System32\\mshtml.dll\",PrintHTML \"%1\""

[HKEY_CLASSES_ROOT\InternetShortcut\shell\printto]

[HKEY_CLASSES_ROOT\InternetShortcut\shell\printto\command]
@="\"C:\\Windows\\System32\\rundll32.exe\" \"C:\\Windows\\System32\\mshtml.dll\",PrintHTML \"%1\" \"%2\" \"%3\" \"%4\""

[HKEY_CLASSES_ROOT\InternetShortcut\ShellEx]

[HKEY_CLASSES_ROOT\InternetShortcut\ShellEx\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\InternetShortcut\ShellEx\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
@=""

[HKEY_CLASSES_ROOT\InternetShortcut\ShellEx\IconHandler]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"

[HKEY_CLASSES_ROOT\InternetShortcut\ShellEx\PropertySheetHandlers]

[HKEY_CLASSES_ROOT\InternetShortcut\ShellEx\PropertySheetHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
@=""

[HKEY_CLASSES_ROOT\InternetShortcut\tabsets]
"selection"=dword:00000705


Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.url

Code: Select all

Windows Registry Editor Version 5.00

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

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.url\OpenWithList]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.url\OpenWithProgids]
"InternetShortcut"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.url\UserChoice]
"Hash"="x8yTh3CvhGw="
"ProgId"="IE.AssocFile.URL"

rsa
Junior Member
Junior Member
Posts: 57
Joined: 2003-11-19, 20:41 UTC

Post by *rsa »

Here my settings out of FileTypesMan v1.82 - File Types Manager for Windows, Copyright (c) 2008 - 2016 Nir Sofer :

Extension:

Code: Select all

==================================================
Extension         : .URL
Type Name         : InternetShortcut
Description       : Internetverknüpfung
MIME Type         : 
Perceived Type    : 
In New Menu       : 
Excluded          : 
Always Show Extension: 
Flags             : 0x00000002
Browser Flags     : 0x00000000
Default Icon      : C:\Windows\System32\url.dll,0
Modified Time     : 07.04.2017 01:49:12
File Type Group   : Standard
User Choice       : IE.AssocFile.URL
Icon Handler CLSID: {FBF23B40-E3F0-101B-8488-00AA003E56F8}
Product Name      : Internet Explorer
Product Version   : 11.00.15063.0 (WinBuild.160101.0800)
Product Description: Internet Shortcut Shell Extension DLL
Company Name      : Microsoft Corporation
==================================================


Commands:

Code: Select all

==================================================
Name              : Open
Caption           : Open
Default           : No
Disabled          : Yes
Last Modified     : 07.04.2017 01:49:12
Command-Line      : "C:\Windows\System32\rundll32.exe" "C:\Windows\System32\ieframe.dll",OpenURL %l
DDE Message       : 
DDE Application   : 
DDE Ifexec        : 
Select executable file: 
Process Filename  : C:\Windows\System32\rundll32.exe
In SystemFileAssociations: No
Registry Key      : HKEY_CLASSES_ROOT\IE.AssocFile.URL\Shell\Open\Command
Extended          : No
Product Name      : Betriebssystem Microsoft® Windows®
Product Version   : 10.0.15063.0 (WinBuild.160101.0800)
Product Description: Windows-Hostprozess (Rundll32)
Company Name      : Microsoft Corporation
==================================================

==================================================
Name              : print
Caption           : print
Default           : No
Disabled          : No
Last Modified     : 07.04.2017 01:49:12
Command-Line      : "C:\Windows\System32\rundll32.exe" "C:\Windows\System32\mshtml.dll",PrintHTML "%1"
DDE Message       : 
DDE Application   : 
DDE Ifexec        : 
Select executable file: 
Process Filename  : C:\Windows\System32\rundll32.exe
In SystemFileAssociations: No
Registry Key      : HKEY_CLASSES_ROOT\IE.AssocFile.URL\Shell\print\Command
Extended          : No
Product Name      : Betriebssystem Microsoft® Windows®
Product Version   : 10.0.15063.0 (WinBuild.160101.0800)
Product Description: Windows-Hostprozess (Rundll32)
Company Name      : Microsoft Corporation
==================================================

==================================================
Name              : printto
Caption           : printto
Default           : No
Disabled          : No
Last Modified     : 07.04.2017 01:49:12
Command-Line      : "C:\Windows\System32\rundll32.exe" "C:\Windows\System32\mshtml.dll",PrintHTML "%1" "%2" "%3" "%4"
DDE Message       : 
DDE Application   : 
DDE Ifexec        : 
Select executable file: 
Process Filename  : C:\Windows\System32\rundll32.exe
In SystemFileAssociations: No
Registry Key      : HKEY_CLASSES_ROOT\IE.AssocFile.URL\Shell\printto\Command
Extended          : No
Product Name      : Betriebssystem Microsoft® Windows®
Product Version   : 10.0.15063.0 (WinBuild.160101.0800)
Product Description: Windows-Hostprozess (Rundll32)
Company Name      : Microsoft Corporation
==================================================

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 the UserChoice option:

Code: Select all

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.url\UserChoice]
"Hash"="x8yTh3CvhGw="
"ProgId"="IE.AssocFile.URL" 
Which points to "IE.AssocFile.URL".
Author of Total Commander
https://www.ghisler.com
rsa
Junior Member
Junior Member
Posts: 57
Joined: 2003-11-19, 20:41 UTC

Post by *rsa »

For .URL-files I can only choose "Internet Browser" or search for an app in the store in the settings for the default app for a file type ("Standard-Apps nach Dateityp auswählen"), where there are no apps in the store for this type!
Other for .html (and other file types): Here I can change the setting and choose between all installed Browsers (FF, IE, Edge).

I don't know if I've changed the user-defined program for .url, but I don't think so.
Either it's not possible to open a .url-file with a specific program, like it is, for instance, for .html. There is no "Open With" ("Öffnen mit") in the context menu.
For me it seems that Windows (10) handles .url something different than other file types. Even if this may be inconsistent, I'd prefer that Total Commander works the same way than the Windows Explorer.

So I’ve deleted the key UserChoice for .URL in the Registry. Now Total Commander no shows the globe-Icon (index #5 of “%SystemRoot%\system32\url.dll“), whereas the Explorer still uses the Firefox-Icon.
Now it looks better, but still different to the behaviour in the Explorer.
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, you have multiple contradicting associations, and Microsoft doesn't explain which one is picked by the Explorer in such a case...
Author of Total Commander
https://www.ghisler.com
Post Reply