Page 1 of 1

Some shortcuts have no icons - Bug?

Posted: 30 May 2016 09:00
by Kerry
I was browsing programdata/microsoft/window/start menu. Some of the shortcuts have no icons ,and when you click on them,it says cant find the path or something.if i use the regular windows explorer everythings fine.

Re: Bug?

Posted: 30 May 2016 09:27
by highend
Can you be a bit more specific please?

XY version, screenshot of the error message, show the properties of the .lnk file which isn't working correctly.
Especially the "Target:" line from the "Shortcut" tab

Re: Bug?

Posted: 30 May 2016 09:44
by Kerry
Ill do that tomorrow.its after 2am now. Sorry for the vague response.

Re: Some shortcuts have no icons - Bug?

Posted: 30 May 2016 17:23
by Kerry
XYplorer 16.80

Target: "C:\Program Files\JPSoft\TCMD19_x64\tcmd.exe"

It does it on two others as seen in the screenshot.

Re: Some shortcuts have no icons - Bug?

Posted: 30 May 2016 18:09
by highend
Your target links to the folder "C:\Program Files"

while it is resolved to C:\Program Files (x86) when you execute it... -> Error message, path does not exist

Where this comes from? Don't know. Can you zip your XYplorer.ini file and send it via e-mail (same address as in my signature)?

Re: Some shortcuts have no icons - Bug?

Posted: 30 May 2016 18:27
by bdeshi
This has nothing to do with XYplorer ini.

Kerry, it's because the shortcuts point to %ProgramFiles%\JPSoft\...
%programfiles% evaluates to "C:\program files" in 64-bit applications, but XYplorer is a 32-bit app and Windows tells it that %programfiles% == C:\program files (x86).
But there is no "C:\program files (x86)\JPSoft \..." Hence the missing icons and targets. Any 32-bit program is affected by this actually.
You can edit the shortcut properties to point to the absolute path without any %programfiles% env.vars.

On 64-bit systems, installers should use %programw6432% for C:\Program Files and %programfiles(x86)% for the other, but few follow this suggestion.

Re: Some shortcuts have no icons - Bug?

Posted: 30 May 2016 20:10
by Kerry
So Change the target to :"C:\%programw6432%\JPSoft\TCMD19_x64\tcmd.exe"