Messages - Vanav [ switch to compact view ]

Pages: prev1 2 [3] 4 5next
11
FARR Plugins and Aliases / Re: Alias: WolframAlpha Search
« on: May 01, 2018, 08:22 AM »
Note, if you want the result from wolfram alpha to display directly in your farr window, and not open your browser to show it, you can easily do that by changing the alias result from:
WolframAlpha: $$1 | http://www.wolframalpha.com/input/?i=$$u1 /ICON=icons\wolframalpha.ico
to:
WolframAlpha: $$1 | htmlviewurl http://www.wolframalpha.com/input/?i=$$u1 /ICON=icons\wolframalpha.ico
htmlviewurl and $$u1 seems doesn't work together, say, "+" sign is still lost. Is it a bug?

12
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!



13
Updated instructions for Screenshot Captor v4 and fixed some minor bugs in script.

14
Custom icon is fixed and icon index is used now. But issue with a lot of broken icons of 64-bit applications with specified "known folder" is back. "Intel TurboBoost" is one more example of such application.

15
I've found a regression. This shortcut has incorrect icon:

[Filename]: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cisco Systems VPN Client\VPN Client.lnk

[Header]
Date created: Unknown
Last accessed: Unknown
Last modified: Unknown
File size: 0 bytes
File attributes: 0x00000000 (None)
Icon index: 1
ShowWindow value: 1 (SW_SHOWNORMAL / SW_NORMAL)
Hot key value: 0x0000 (None)
Link flags: 0x000050dd (HasLinkTargetIDList, HasName, HasRelativePath, HasWorkingDir, HasIconLocation, IsUnicode, HasDarwinID, HasExpIcon)

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

Drive: C:\

Last modified: 10/10/2011 (11:55:02.0) [UTC]
Folder attributes: 0x00000010 (FILE_ATTRIBUTE_DIRECTORY)
Short directory name: Windows
Date created: 07/14/2009 (03:20:10.0) [UTC]
Last accessed: 10/10/2011 (11:55:02.0) [UTC]
Long directory name: Windows

Last modified: 10/10/2011 (11:56:24.0) [UTC]
Folder attributes: 0x00000016 (FILE_ATTRIBUTE_HIDDEN, FILE_ATTRIBUTE_SYSTEM, FILE_ATTRIBUTE_DIRECTORY)
Short directory name: INSTAL~1
Date created: 04/22/2010 (15:51:06.0) [UTC]
Last accessed: 10/10/2011 (11:56:24.0) [UTC]
Long directory name: Installer

Last modified: 10/05/2011 (19:04:46.0) [UTC]
Folder attributes: 0x00000010 (FILE_ATTRIBUTE_DIRECTORY)
Short directory name: {5FDC0~1
Date created: 10/05/2011 (19:04:46.0) [UTC]
Last accessed: 10/05/2011 (19:04:46.0) [UTC]
Long directory name: {5FDC06BF-3D3D-4367-8FFB-4FAFCB61972D}

File size: 5120 bytes
Last modified: 10/05/2011 (19:04:46.0) [UTC]
File attributes: 0x00000021 (FILE_ATTRIBUTE_READONLY, FILE_ATTRIBUTE_ARCHIVE)
8.3 filename: ICON09~1.EXE
Date created: 10/05/2011 (19:04:46.0) [UTC]
Last accessed: 10/05/2011 (19:04:46.0) [UTC]
Long filename: Icon09DB8A85.exe

[String Data]
Comment (UNICODE): Cisco Systems Inc. VPN Client
Relative path (UNICODE): ..\..\..\..\..\..\Windows\Installer\{5FDC06BF-3D3D-4367-8FFB-4FAFCB61972D}\Icon09DB8A85.exe
Working Directory (UNICODE): C:\Program Files (x86)\Cisco Systems\VPN Client\
Icon location (UNICODE): C:\windows\Installer\{5FDC06BF-3D3D-4367-8FFB-4FAFCB61972D}\Icon09DB8A85.exe

[Darwin Properties]
Application identifier (ASCII): %sjmFMWHa9^'EEapvR`2Complete>ZS@)2jIL4@Bl}5](Qg_z
Application identifier (UNICODE): %sjmFMWHa9^'EEapvR`2Complete>ZS@)2jIL4@Bl}5](Qg_z

[Icon Location]
Icon location (ASCII): %SystemRoot%\Installer\{5FDC06BF-3D3D-4367-8FFB-4FAFCB61972D}\Icon09DB8A85.exe
Icon location (UNICODE): %SystemRoot%\Installer\{5FDC06BF-3D3D-4367-8FFB-4FAFCB61972D}\Icon09DB8A85.exe

Notice "Icon index" and "Icon location (UNICODE)".
You show icon with index 0 from Icon09DB8A85.exe, but you should show icon with index 1.
As far as I remember, previous version had no such bug.

Update. About issue https://www.donationcoder.com/forum/index.php?topic=10505.msg301518#msg301518
Seems you ignore icon of shortcut. I've make a shortcut and assigned standard icon to it (from shell32.dll), as most users will do. Here is shortcut properties:

[Filename]: C:\Users\Ivan\Desktop\WebServer Stop.lnk

[Header]
Date created: 05/28/2012 (09:21:07.64) [UTC]
Last accessed: 05/28/2012 (09:21:07.64) [UTC]
Last modified: 05/28/2012 (09:27:34.758) [UTC]
File size: 47 bytes
File attributes: 0x00000020 (FILE_ATTRIBUTE_ARCHIVE)
Icon index: 27
ShowWindow value: 1 (SW_SHOWNORMAL / SW_NORMAL)
Hot key value: 0x0000 (None)
Link flags: 0x000800db (HasLinkTargetIDList, HasLinkInfo, HasRelativePath, HasWorkingDir, HasIconLocation, IsUnicode, EnableTargetMetadata)

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

Drive: C:\

Folder attributes: 0x00000010 (FILE_ATTRIBUTE_DIRECTORY)
Short directory name: Utils
Long directory name: Utils

File size: 47 bytes
Last modified: 05/28/2012 (09:27:36.0) [UTC]
File attributes: 0x00000020 (FILE_ATTRIBUTE_ARCHIVE)
8.3 filename: WEBSER~2.BAT
Date created: 05/28/2012 (09:21:08.0) [UTC]
Last accessed: 05/28/2012 (09:21:08.0) [UTC]
Long filename: WebServerStop.bat

[Link Info]
Location flags: 0x00000001 (VolumeIDAndLocalBasePath)
Drive type: 3 (DRIVE_FIXED)
Drive serial number: 368f-2269
Volume label (ASCII): MainSDD
Local path (ASCII): C:\Utils\WebServerStop.bat

[String Data]
Relative path (UNICODE): ..\..\..\Utils\WebServerStop.bat
Working Directory (UNICODE): C:\Utils
Icon location (UNICODE): %SystemRoot%\system32\SHELL32.dll

[Metadata Property Store]
Property set GUID: b725f130-47ef-101a-a5f1-02608c9eebac
ID: System.ItemTypeText
Value: 0x001f (VT_LPWSTR) WebServerStop.bat
ID: System.ItemTypeText
Value: 0x001f (VT_LPWSTR) ???????? ???? Windows
ID: System.DateCreated
Value: 0x0040 (VT_FILETIME) 05/28/2012 (09:21:08.0) [UTC]
ID: System.Size
Value: 0x0015 (VT_UI8) 0x000000000000002f = 47
ID: System.DateModified
Value: 0x0040 (VT_FILETIME) 05/28/2012 (09:27:36.0) [UTC]

Property set GUID: dabd30ed-0043-4789-a7f8-d013a4736622
ID: System.ItemFolderPathDisplayNarrow
Value: 0x001f (VT_LPWSTR) Utils (C:)

Property set GUID: 28636aa6-953d-11d2-b5d6-00c04fd918d0
ID: System.ParsingPath
Value: 0x001f (VT_LPWSTR) C:\Utils\WebServerStop.bat

[Distributed Link Tracker Properties]
Version: 0
NetBIOS name: ivan-hp
Droid volume identifier: cce0ad80-af66-4a74-bb97-9a2afa1ba305
Droid file identifier: 77c006aa-a3d0-11e1-ae15-c35a2998b499
Birth droid volume identifier: cce0ad80-af66-4a74-bb97-9a2afa1ba305
Birth droid file identifier: 77c006aa-a3d0-11e1-ae15-c35a2998b499
MAC address: c3:5a:29:98:b4:99
UUID timestamp: 05/22/2012 (05:39:15.542) [UTC]
UUID sequence number: 11797

Notice "Icon index" and "Icon location (UNICODE)".

Pages: prev1 2 [3] 4 5next
Go to full version