Error Executing Program! (5) with MPC-HC and junctions.

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
GL1zdA
Junior Member
Junior Member
Posts: 15
Joined: 2005-02-07, 17:24 UTC
Location: Poland

Error Executing Program! (5) with MPC-HC and junctions.

Post by *GL1zdA »

I'm using TC 8.01 x64.
I downloaded and unpacked the x86 zip version of MPC-HC. Since I don't want to delete previous version, because sometimes there are bugs in the new ones, I simply unpack it and make a junction to the latest directory. This is how it looks like when listed with dir:

Code: Select all

2013-05-25  16:41    <DIR>          MPC
2012-08-28  16:58    <DIR>          MPC-HC.1.6.2.4902.x86
2012-09-28  18:04    <DIR>          MPC-HC.1.6.3.5818.x86
2012-10-23  17:34    <DIR>          MPC-HC.1.6.4.6052.x86
2013-03-12  00:35    <DIR>          MPC-HC.1.6.5.6366.x86
2013-05-25  16:40    <DIR>          MPC-HC.1.6.7.7114.x86
2013-05-25  16:40    <JUNCTION>     MPC-HC.latest [\??\d:\opt\MPC-HC.1.6.7.7114.x86]
Then I drag the mpc-hc.exe to TCs button bar, so I can launch it from there. If I drag it from a real directory everything works fine. If I drag it from the junction it fails to launch with "Error Executing Program! (5)". I tried creating junctions to other programs and they work when launched from the button bar, it seems MPC-HC is somehow different. Running MPC-HC.exe from the junction through explorer also works flawless.

I dumped events with Process Monitor, it seems there is some problem with paths: Screenshots.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a bug caused by the latest Internet Explorer. You will have to wait for TC 8.5 for a workaround.
Author of Total Commander
https://www.ghisler.com
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Hi,

I had the same problem with executables in a junction folder and resolved it temporarily by removing the junction and providing full path to the executables. The problem is that I had to update a lot of dependencies: button bar items, but e.g. also sLister.ini, internal associations, redirected ini sections etc.

Christian,

Would it be possible to define a %commander_tools% environment variable which would mostly (at least for me) eliminate the use of a junction? The use of %commander_path% is not feasible, because I keep my general tools folder outside %commander_path%.

Regards, EricB
GL1zdA
Junior Member
Junior Member
Posts: 15
Joined: 2005-02-07, 17:24 UTC
Location: Poland

Post by *GL1zdA »

ghisler(Author) wrote:This is a bug caused by the latest Internet Explorer. You will have to wait for TC 8.5 for a workaround.
Thanks for answering, good to know that this will be fixed in the future.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Actually it's a severe bug in Windows function ShellExecuteEx, it simply fails to open the junction. What I do to fix it is to read the junction target and launch that instead. Someone else has already reported this bug to Microsoft, so I hope that they will fix it in Windows 8.1.
Author of Total Commander
https://www.ghisler.com
Post Reply