DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Missing icons for some links on Windows 10/8 64-bit  (Read 15,865 times)

Vanav

  • Member
  • Joined in 2009
  • **
  • Posts: 24
Missing icons for some links on Windows 10/8 64-bit
« on: June 22, 2015, 03:19 PM »
There was an old issue about missing icons, but now seems issue is back (maybe it was fixed only for Windows 7 that time?). I'll describe it again in short here, see old thread for more information.

Screenshot - 2015-06-22 17_23_10.png

Some links for 64-bit applications doesn't show icon on Windows 8. This issue only affects 64-bit applications on Windows 8. It doesn't appears on Windows 7 nor for 32-bit applications. Not all links are affected, but some of them. Options "Shortcut Lnk Resolution" changes nothing here. Only applications in "C:\Program Files" are affected, not in "C:\Program Files (x86)".

Known affected 64-bit applications:
- Opera Browser
- 3DMark
- TortoiseSVN, TortoiseMerge, TortoiseIDiff
- Everything
- 3DMark
- SecureFX, SecureCRT
- 7-Zip (old version, can't reproduce with new version)
- dupeGuru
- COMODO Internet Security (icon is correct, path is not correct)
- Far Manager 3 x64
- Intel® Rapid Storage Technology
- Microsoft Mathematics
- Intel Processor Diagnostic Tool,
- Oracle VM VirtualBox,
- FastCopy

Lets look inside "bad" lnk file:
lnk_parser_cmd.exe "C:\ProgramData\Start Menu\Programs\TortoiseSVN\TortoiseMerge.lnk"

Code: (generic)
[Filename]:				C:\ProgramData\Start Menu\Programs\TortoiseSVN\TortoiseMerge.lnk

[Header]
Date created:				08/10/2014 (12:10:38.0) [UTC]
Last accessed:				08/23/2014 (15:25:37.234) [UTC]
Last modified:				08/10/2014 (12:10:38.0) [UTC]
File size:				2630400 bytes
File attributes:			0x00000020	(FILE_ATTRIBUTE_ARCHIVE)
Icon index:				0
ShowWindow value:			1		(SW_SHOWNORMAL / SW_NORMAL)
Hot key value:				0x0000		(None)
Link flags:				0x0000008f	(HasLinkTargetIDList, HasLinkInfo, HasName, HasRelativePath, IsUnicode)

[Link Target ID List]
CLSID:					20d04fe0-3aea-1069-a2d8-08002b30309d = My Computer

Drive:					C:\

Last modified:				08/23/2014 (15:25:38.0) [UTC]
Folder attributes:			0x00000011	(FILE_ATTRIBUTE_READONLY, FILE_ATTRIBUTE_DIRECTORY)
Short directory name:			PROGRA~1
Date created:				08/22/2013 (13:36:16.0) [UTC]
Last accessed:				08/23/2014 (15:25:38.0) [UTC]
Long directory name:			Program Files
Argument:				@shell32.dll,-21781

Last modified:				08/23/2014 (15:25:38.0) [UTC]
Folder attributes:			0x00000010	(FILE_ATTRIBUTE_DIRECTORY)
Short directory name:			TORTOI~1
Date created:				08/23/2014 (15:25:38.0) [UTC]
Last accessed:				08/23/2014 (15:25:38.0) [UTC]
Long directory name:			TortoiseSVN

Last modified:				08/23/2014 (15:25:38.0) [UTC]
Folder attributes:			0x00000010	(FILE_ATTRIBUTE_DIRECTORY)
Short directory name:			bin
Date created:				08/23/2014 (15:25:38.0) [UTC]
Last accessed:				08/23/2014 (15:25:38.0) [UTC]
Long directory name:			bin

File size:				2630400 bytes
Last modified:				08/10/2014 (12:10:38.0) [UTC]
File attributes:			0x00000020	(FILE_ATTRIBUTE_ARCHIVE)
8.3 filename:				TORTOI~3.EXE
Date created:				08/10/2014 (12:10:38.0) [UTC]
Last accessed:				08/23/2014 (15:25:38.0) [UTC]
Long filename:				TortoiseMerge.exe

[Link Info]
Location flags:				0x00000001	(VolumeIDAndLocalBasePath)
Drive type:				3		(DRIVE_FIXED)
Drive serial number:			5238-03e0
Volume label (ASCII):			System SSD
Local path (ASCII):			C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe

[String Data]
Comment (UNICODE):			View Diff's, Merge Diff's, Resolve Conflicted Files and Apply Patches
Relative path (UNICODE):		..\..\..\..\..\..\Program Files\TortoiseSVN\bin\TortoiseMerge.exe

[Known Folder Location]
Known folder GUID:			905e63b6-c1bf-494e-b29c-65b732d3d21a = ProgramFiles
First child segment offset:		185 bytes

[Metadata Property Store]
Property set GUID:			46588ae2-4cbc-4338-bbfc-139326986dce
ID:					4
Value:					0x001f (VT_LPWSTR)	S-1-5-18

[Special Folder Location]
Special folder identifier:		38		(ProgramFiles)
First child segment offset:		185 bytes

[Distributed Link Tracker Properties]
Version:				0
NetBIOS name:				xx
Droid volume identifier:		0318f7dc-7f30-4740-9e53-5ca4943e0b8d
Droid file identifier:			516e9cba-2ad9-11e4-82c8-ac220b4cafe0
Birth droid volume identifier:		0318f7dc-7f30-4740-9e53-5ca4943e0b8d
Birth droid file identifier:		516e9cba-2ad9-11e4-82c8-ac220b4cafe0
MAC address:				xx:xx:xx:xx:xx:xx
UUID timestamp:				08/23/2014 (15:22:39.43) [UTC]
UUID sequence number:			712

Target is "C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe". The issue is in this lines:

Code: (generic)
...
[Known Folder Location]
Known folder GUID:			905e63b6-c1bf-494e-b29c-65b732d3d21a = ProgramFiles
First child segment offset:		185 bytes
...
[Special Folder Location]
Special folder identifier:		38		(ProgramFiles)
First child segment offset:		185 bytes
...

This means that link refers to a file in FOLDERID_ProgramFiles folder, this constant is {905e63b6-c1bf-494e-b29c-65b732d3d21a} or CSIDL_PROGRAM_FILES = 0x0026 (decimal: 38).

But this constant has a different meaning in 32-bit and 64-bit applications. If you resolve link from 64-bit application it will lead to "%SystemDrive%\Program Files", but if you resolve it from 32-bit application it will lead to "%SystemDrive%\Program Files (x86)".

That's why FARR (32-bit) searches icon in "C:\Program Files (x86)\TortoiseSVN\bin\TortoiseMerge.exe" - not existent path. So, technically this is an issue with incorrect links, but it is very common, and it will be perfect if we can make a workaround.

Thank you!


« Last Edit: May 04, 2018, 10:54 AM by Vanav »

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: Missing icons for some links on Windows 8 64-bit
« Reply #1 on: June 23, 2015, 08:22 AM »
Thanks for reporting this Vanav (and in such great detail). Have the same problem but was too lazy to report it.

Vanav

  • Member
  • Joined in 2009
  • **
  • Posts: 24
Re: Missing icons for some links on Windows 8 64-bit
« Reply #2 on: May 03, 2018, 10:50 PM »
mouser, please, check again this bug.

In short: FARR2 incorrectly thinks that some link destinations are in "C:\Program Files (x86)", and can't find icons. The correct path is "C:\Program Files". Can be reproduced on Windows 10 x64 and Windows 8 x64.

You have already fixed this bug in 2012, but since then there was a regression.

KuttKatrea

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #3 on: May 04, 2018, 04:43 AM »
Maybe if we were provided with an x64 build, it would work just fine (as the native Windows menu)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #4 on: May 04, 2018, 09:45 AM »
Anyone else seeing this problem (or not)?

anandcoral

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 802
    • Participated in NANY Challenge Thirteen Times
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #5 on: May 04, 2018, 10:30 AM »
Farr is OK here, win10 64bit

2018-05-04_155557.png

2018-05-04_155219.png

2018-05-04_160042.png

Regards,

Anand

Vanav

  • Member
  • Joined in 2009
  • **
  • Posts: 24
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #6 on: May 04, 2018, 10:44 AM »
To reproduce you should: 1) have Windows 10 or 8 x64, 2) install any x64 program from my list in first post.

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #7 on: May 04, 2018, 01:28 PM »
I see this with Everything.

Screenshot_1.png

Note that Everything result number 1 is installed in c:\program files\Everything, 64bit, icon is wrong. Result number 2 is portable Everything located in a search folder known to FARR, icon is correct

I am running windows 10.
It is impossible to make anything foolproof because fools are so ingenious.

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #8 on: May 04, 2018, 08:12 PM »
I have it with Paint.net, but only at work where I have Paint.net installed using the Windows installer in 'Program Files'. On my private laptop, where I have installed Paint.net using Scoop (which installs it somewhere underneath Users\user\scoop\apps), the icon is display correctly.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #9 on: May 06, 2018, 06:31 AM »
Ok I'll have a look and see what I can fix.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #10 on: May 10, 2018, 12:04 PM »
I have the same issue.
To reproduce it in Windows 10 create a link to any .exe in Program Files by holding Alt and click drag the .exe. Search the link in FARR.
For comparison temporarily copy the same .exe to somewhere in Program Files (x86) and make a link to it and search in FARR.

Icons are also incorrect when using #filecontents to display a text string (not a file path) in the way described here. What happens then is that the icon from the results row above it is reused for the #filecontents row.

Merlin2001

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 3
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #11 on: December 06, 2018, 05:33 PM »
Hi together,

I just wanted to confirm that this issue still exists and can be pretty annoying because it prevents every bit of visual clue:
2018-12-06_18h06_15.png

The scary thing is that it also affects my custom aliases (which are set to retrieve their icons from FindAndRunRobotPortable\AliasGroups\MyCustom\icons by using /ICON=icons\info.ico in the alias description).
But all icons are shown as Paint3D for some reason and I have not been able to deduct a pattern based on the behavior, so far :(

Is there a fix/workaround for this? Or is my setup just messed-up in some way?

Thanks so much for making FARR, anyway!
Marcus

Original address: https://www.donationcoder.com/forum/index.php?topic=41145.0