Problems starting XY from a "junctioned" directory

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Problems starting XY from a "junctioned" directory

Post by PeterH »

First to say: this was OK for years, but refused to work several weeks ago.

The situation: XY is installed in "C:\Programme2\XYTest\12.30.0209\".
Installed means: unpacked the .zip, and made several modifications to xydata. (It's version-unique, below the app-path.)
Starting XY directly from here makes no problem.

To say: there are several more folders containing XYs (XY as plural: that's fine ;-) ) of differing versions.
In "C:\Programme2\XYTest\" exists a junction named "Current", and pointing to the above directory. So I can start this very XY either by entering this junction, or (that's the reason of it) by starting some link to "C:\Programme2\XYTest\current\XYplorer.exe". Both shows the same - strange - result:

XY starts, and *seems* to work OK. *BUT*:
- starting help fails to work: help window appears, but without any text inside
- script command "run" works with "wait" (3rd operand = 1), but doesn't work if 3rd operand = 0 or omitted, i.e."no wait". (Shows "Unknown Error".)
- if I start a backgrounded command it is queued, but never executed. (Maybe XYcopy cannot be started?)

(It took me quite a time to find out that the junction is the reason for the strange effects suddenly happening...)

Really tested on Win7, but it seems on XP it's the same.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Problems starting XY from a "junctioned" directory

Post by Marco »

What app paths do you see in Help > Various Informations, changing the way you start XY?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Problems starting XY from a "junctioned" directory

Post by PeterH »

Marco wrote:What app paths do you see in Help > Various Informations, changing the way you start XY?
When starting via the junction, the App-path is shown as C:\Programme2\XYTest\Current\XYplorer.exe, while all other paths are shown real.
(Example: Ini File: "C:\Programme2\XYTest\12.30.0209\AppData\XYplorer.ini".)

But that's expected: startup.ini (in "C:\Programme2\XYTest\12.30.0209\" = "C:\Programme2\XYTest\Current\") says:

Code: Select all

[Appdata]
Path=C:\Programme2\XYTest\12.30.0209\AppData

admin
Site Admin
Posts: 67326
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Problems starting XY from a "junctioned" directory

Post by admin »

PeterH wrote:First to say: this was OK for years, but refused to work several weeks ago.
I don't think any changes in XY have caused this.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Problems starting XY from a "junctioned" directory

Post by PeterH »

admin wrote:
PeterH wrote:First to say: this was OK for years, but refused to work several weeks ago.
I don't think any changes in XY have caused this.
Sad to say: that seems correct :(
I just made the test (described below) with the current version, and with V10 :arrow: same bad results!

Just to see if it's just a problem of my system, or general, could please someone test?
(I must say it seems the problem is my Win7 only, not XP :shock: But will test that later.)

To test:
- somewhere create a folder $t (I did on d:\)
- inside $t create folder XY
- extract some (more or less) current XY-noinstall to $t\XY
- start $t\XY\XYplorer.exe
- click Help/Contents and Index (should be shown correct)

- go to $t
- right click folder XY, select Copy
- right click empty space, select Paste Special / Paste As Junction(s), name it Junc,
- go to $t\Junc
- start XYplorer.exe (i.e. $t\Junc\XYplorer.exe, which is identical to above)
- click Help/Contents and Index :arrow: for me this is shown wrong :!:

A bit strange: for my first tests the help was shown complete empty, while for the tests executed as described above help was shown with data in left column, but right side keeps empty :shock: )

PS just tested as above on XP - at least help was shown correct, so no problem at first sight.

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Problems starting XY from a "junctioned" directory

Post by Borut »

Have not tested this, but my first wild guess was: http://www.xyplorer.com/faq-topic.php?id=chm

Maybe the junction place is treated as html-dangerous. Have you tried that on your Win7?
Win 10 Pro 64bit

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Problems starting XY from a "junctioned" directory

Post by PeterH »

Borut wrote:Have not tested this, but my first wild guess was: http://www.xyplorer.com/faq-topic.php?id=chm

Maybe the junction place is treated as html-dangerous. Have you tried that on your Win7?
Thanks Borut! Not the solution, but at least quite helpful!

First to say: just double clicking XYplorer.chm in original and in junctioned directory (in XY as well as in Win explorer) shows that it happens completely outside XY - so XY isn't the reason, but at least is affected.
(And it shows that the test I described before was much more complex than neccessary :roll: )

OK: tested via both paths no file in XY directory ever is shown "blocked". So: no hit here :(
This brought me to think about authorizations...
- so compared authorizations between native and junctioned directory: no difference,
- and between files inside both: also no difference.
(All authorizations propagated from (local drive!) d:\)
:arrow: This *seems* to say authorization can't be the reason. But:
(first to say: I generally work with a user with non-administrative rights,
and: what I said about authorizations for the test folders is also true for the general used folders)
double clicking XYplorer.chm in junctioned directory shows a complete empty help - if done by normal user, but the left column is filled and only right is empty if done with administrative user! So there seems to be some aspect :shock: (though I still don't have an idea what it might be)

Result: I will continue some searching :roll:

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Problems starting XY from a "junctioned" directory

Post by PeterH »

Seems I've got a solution - but I don't like it :evil:

The structure of folders for test was:
...\$t\XY\ :arrow: install directory, and
...\$t\Curr :arrow: Junction addressing the install directory.
The result: XYplorer.exe + XYplorer.chm + etc. "seem" to be located directly "in" the junction ...\$t\Curr\*.*
Working this way leads to problems - I don't know why :oops:

New Test:
...\$t\dummy\XY\ :arrow: install directory, and
...\$t\Curr :arrow: junction to ...\$t\dummy
Now the "junctioned" install is
...\$t\Curr\XY\
:arrow: now the .exe, .chm, ... are not directly in the junctioned directory, but in a subdirectory of it!
Magic: now the problem is gone :shock: :shock: :shock: (At least for the help file - still must test other functions.)

The result: it seems there are some strange "authorization problems" (or problems looking like that) for files (like *.chm) that are localized directly in a directory that's a junction.
And I assume this started some/several weeks ago with some service on Win7, maybe 12th of March or 12th of February.

Some info to the names I use productive:
...\xy\12.30.0212\ is one install directory - this exists for different version.
...\xy\Curr is a junction for addressing the "current active" XY-version.
Links, for example in Start Menu, address ...\xy\Curr\XYplorer.exe, ...\xy\Curr\XYplorerHelp.pdf and alike. So changing to another XY version is just changing 1 junction.

A solution for the current problem would be to install to
...\xy\12.30.0212\install\ and set the junction in
...\xy\Curr to ...\xy\12.30.0212
and the link to ...\xy\Curr\install\XYplorer.exe
:evil: :evil: :evil:

But OK - at least I will test it this way, to see if *all* problems are gone.

--------------------------------------------------------------------------------
edit: just have tested the real changed config: success!

Now help works again, as it should,
and also script-command run """....exe""", , 0; works again. (This was the reason why I said before, that this W7-problem affects XY.)

So: :?
:) that I have a solution, and
:( that I don't like it (i.e. don't like the extra directory level.)

Post Reply