topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • May 22, 2018, 03:22 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Vanav

  • Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 21
    • View Profile
    • Donate to Member
Missing icons for some links on Windows 10/8 64-bit
« on: June 22, 2015, 10:19 AM »
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: Text [Select]
  1. [Filename]:                             C:\ProgramData\Start Menu\Programs\TortoiseSVN\TortoiseMerge.lnk
  2.  
  3. [Header]
  4. Date created:                           08/10/2014 (12:10:38.0) [UTC]
  5. Last accessed:                          08/23/2014 (15:25:37.234) [UTC]
  6. Last modified:                          08/10/2014 (12:10:38.0) [UTC]
  7. File size:                              2630400 bytes
  8. File attributes:                        0x00000020      (FILE_ATTRIBUTE_ARCHIVE)
  9. Icon index:                             0
  10. ShowWindow value:                       1               (SW_SHOWNORMAL / SW_NORMAL)
  11. Hot key value:                          0x0000          (None)
  12. Link flags:                             0x0000008f      (HasLinkTargetIDList, HasLinkInfo, HasName, HasRelativePath, IsUnicode)
  13.  
  14. [Link Target ID List]
  15. CLSID:                                  20d04fe0-3aea-1069-a2d8-08002b30309d = My Computer
  16.  
  17. Drive:                                  C:\
  18.  
  19. Last modified:                          08/23/2014 (15:25:38.0) [UTC]
  20. Folder attributes:                      0x00000011      (FILE_ATTRIBUTE_READONLY, FILE_ATTRIBUTE_DIRECTORY)
  21. Short directory name:                   PROGRA~1
  22. Date created:                           08/22/2013 (13:36:16.0) [UTC]
  23. Last accessed:                          08/23/2014 (15:25:38.0) [UTC]
  24. Long directory name:                    Program Files
  25. Argument:                               @shell32.dll,-21781
  26.  
  27. Last modified:                          08/23/2014 (15:25:38.0) [UTC]
  28. Folder attributes:                      0x00000010      (FILE_ATTRIBUTE_DIRECTORY)
  29. Short directory name:                   TORTOI~1
  30. Date created:                           08/23/2014 (15:25:38.0) [UTC]
  31. Last accessed:                          08/23/2014 (15:25:38.0) [UTC]
  32. Long directory name:                    TortoiseSVN
  33.  
  34. Last modified:                          08/23/2014 (15:25:38.0) [UTC]
  35. Folder attributes:                      0x00000010      (FILE_ATTRIBUTE_DIRECTORY)
  36. Short directory name:                   bin
  37. Date created:                           08/23/2014 (15:25:38.0) [UTC]
  38. Last accessed:                          08/23/2014 (15:25:38.0) [UTC]
  39. Long directory name:                    bin
  40.  
  41. File size:                              2630400 bytes
  42. Last modified:                          08/10/2014 (12:10:38.0) [UTC]
  43. File attributes:                        0x00000020      (FILE_ATTRIBUTE_ARCHIVE)
  44. 8.3 filename:                           TORTOI~3.EXE
  45. Date created:                           08/10/2014 (12:10:38.0) [UTC]
  46. Last accessed:                          08/23/2014 (15:25:38.0) [UTC]
  47. Long filename:                          TortoiseMerge.exe
  48.  
  49. [Link Info]
  50. Location flags:                         0x00000001      (VolumeIDAndLocalBasePath)
  51. Drive type:                             3               (DRIVE_FIXED)
  52. Drive serial number:                    5238-03e0
  53. Volume label (ASCII):                   System SSD
  54. Local path (ASCII):                     C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe
  55.  
  56. [String Data]
  57. Comment (UNICODE):                      View Diff's, Merge Diff's, Resolve Conflicted Files and Apply Patches
  58. Relative path (UNICODE):                ..\..\..\..\..\..\Program Files\TortoiseSVN\bin\TortoiseMerge.exe
  59.  
  60. [Known Folder Location]
  61. Known folder GUID:                      905e63b6-c1bf-494e-b29c-65b732d3d21a = ProgramFiles
  62. First child segment offset:             185 bytes
  63.  
  64. [Metadata Property Store]
  65. Property set GUID:                      46588ae2-4cbc-4338-bbfc-139326986dce
  66. ID:                                     4
  67. Value:                                  0x001f (VT_LPWSTR)      S-1-5-18
  68.  
  69. [Special Folder Location]
  70. Special folder identifier:              38              (ProgramFiles)
  71. First child segment offset:             185 bytes
  72.  
  73. [Distributed Link Tracker Properties]
  74. Version:                                0
  75. NetBIOS name:                           xx
  76. Droid volume identifier:                0318f7dc-7f30-4740-9e53-5ca4943e0b8d
  77. Droid file identifier:                  516e9cba-2ad9-11e4-82c8-ac220b4cafe0
  78. Birth droid volume identifier:          0318f7dc-7f30-4740-9e53-5ca4943e0b8d
  79. Birth droid file identifier:            516e9cba-2ad9-11e4-82c8-ac220b4cafe0
  80. MAC address:                            xx:xx:xx:xx:xx:xx
  81. UUID timestamp:                         08/23/2014 (15:22:39.43) [UTC]
  82. UUID sequence number:                   712

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

Code: Text [Select]
  1. ...
  2. [Known Folder Location]
  3. Known folder GUID:                      905e63b6-c1bf-494e-b29c-65b732d3d21a = ProgramFiles
  4. First child segment offset:             185 bytes
  5. ...
  6. [Special Folder Location]
  7. Special folder identifier:              38              (ProgramFiles)
  8. First child segment offset:             185 bytes
  9. ...

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, 05:54 AM by Vanav »

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,194
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 8 64-bit
« Reply #1 on: June 23, 2015, 03: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
  • **
  • default avatar
  • Posts: 21
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 8 64-bit
« Reply #2 on: May 03, 2018, 05: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

  • Participant
  • Joined in 2007
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #3 on: May 03, 2018, 11:43 PM »
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: 38,540
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #4 on: May 04, 2018, 04:45 AM »
Anyone else seeing this problem (or not)?

anandcoral

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 543
    • View Profile
    • App, to help you : Overlap Wallpaper, Park Cursor Aside, Stick A Note, Merge CSV and Text and many more.
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #5 on: May 04, 2018, 05:30 AM »
Farr is OK here, win10 64bit

2018-05-04_155557.pngMissing icons for some links on Windows 10/8 64-bit

2018-05-04_155219.pngMissing icons for some links on Windows 10/8 64-bit

2018-05-04_160042.pngMissing icons for some links on Windows 10/8 64-bit

Regards,

Anand

Vanav

  • Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 21
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #6 on: May 04, 2018, 05: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: 252
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #7 on: May 04, 2018, 08:28 AM »
I see this with Everything.

Screenshot_1.pngMissing icons for some links on Windows 10/8 64-bit

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,194
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #8 on: May 04, 2018, 03: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: 38,540
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #9 on: May 06, 2018, 01:31 AM »
Ok I'll have a look and see what I can fix.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 898
    • View Profile
    • Donate to Member
Re: Missing icons for some links on Windows 10/8 64-bit
« Reply #10 on: May 10, 2018, 07:04 AM »
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.