Run programs as admin in symlinked folders

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Run programs as admin in symlinked folders

Post by *Lefteous »

Running a program in a folder which is actually a symlink doesn't work. This is not really related to TC. It doesn't work in Explorer as well.
Navigating to the symlink target folder and then execute the file as admin works fine - of course.

Any ideas how to ease the pain?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I've created a dir with some test executable and made a junction and a symlink for that dir, then I've made LNKs and dragged all three executables to TC buttonbar and tried to start all as admin, also I've added asterisks to all buttonbar button's paths and tried to start them, and in all cases my test program was started successfully.

Please give more direct steps for reproducing this problem (in Explorer too), I can't understand how do you run programs from folder symlinks.
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2MVV
Using standard context menu.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I've tried it too, works fine in both TC and Explorer.

Is your symlink relative?

What exactly happens when you select 'Run as Administrator' context menu item? Does it look like nothing or something happens? Does it work with any path or with some specific one (e.g. f:\dir, f:\dir_junction, f:\dir_symlink or it should be more complex)?
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2MVV
Is your symlink relative?
No. Created using standard mklink command.
What exactly happens when you select 'Run as Administrator' context menu item? Does it look like nothing or something happens? Does it work with any path or with some specific one (e.g. f:\dir, f:\dir_junction, f:\dir_symlink or it should be more complex)?
I think it was 'file not found' or something like that. Actual path doesn't seem to matter.

What be great to here from others if it's a general problem or limited to certain environments.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Perhaps it could help if you provide some information about your environment. :wink:

I've created my links with NTLinks Maker, and even tried to make one relative by editing NTLinks attribute.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2Lefteous
Yes, more info about the environment might be helpful.
But from your description, it sounds like just another instance of broken Internet Explorer update (just like http://ghisler.ch/board/viewtopic.php?t=36490 or https://support.microsoft.com/en-us/kb/2856739 or a few others). Any update can break it or fix it.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I found out the problem and it wasn't really related to the symlink. For the admin the network drive existed but was disconnected :roll:
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Ah, yes, such problem exists in Windows, I face it very often when installing something to VM from mapped shared folder.
Post Reply