Page 1 of 1

Problems starting XY from a "junctioned" directory

Posted: 24 Apr 2013 15:40
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.

Re: Problems starting XY from a "junctioned" directory

Posted: 24 Apr 2013 15:59
by Marco
What app paths do you see in Help > Various Informations, changing the way you start XY?

Re: Problems starting XY from a "junctioned" directory

Posted: 24 Apr 2013 16:32
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

Re: Problems starting XY from a "junctioned" directory

Posted: 25 Apr 2013 08:09
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.

Re: Problems starting XY from a "junctioned" directory

Posted: 25 Apr 2013 23:11
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.

Re: Problems starting XY from a "junctioned" directory

Posted: 26 Apr 2013 09:54
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?

Re: Problems starting XY from a "junctioned" directory

Posted: 26 Apr 2013 14:17
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:

Re: Problems starting XY from a "junctioned" directory

Posted: 26 Apr 2013 23:53
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.)