Some shortcuts have no icons - Bug?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Kerry
Posts: 7
Joined: 29 May 2016 20:09

Some shortcuts have no icons - Bug?

Post 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.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Bug?

Post 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
One of my scripts helped you out? Please donate via Paypal

Kerry
Posts: 7
Joined: 29 May 2016 20:09

Re: Bug?

Post by Kerry »

Ill do that tomorrow.its after 2am now. Sorry for the vague response.

Kerry
Posts: 7
Joined: 29 May 2016 20:09

Re: Some shortcuts have no icons - Bug?

Post 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.
To see the attached files, you need to log into the forum.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Some shortcuts have no icons - Bug?

Post 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)?
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Some shortcuts have no icons - Bug?

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Kerry
Posts: 7
Joined: 29 May 2016 20:09

Re: Some shortcuts have no icons - Bug?

Post by Kerry »

So Change the target to :"C:\%programw6432%\JPSoft\TCMD19_x64\tcmd.exe"

Post Reply