Page 1 of 1

Registration not recognized with 2nd instance, different cfg

Posted: 12 Jun 2012 23:30
by Jerry
I'm trying to launch a second instance of XYplorer, using a different configuration that resides in a subdirectory of <xydata> in order to have this alternative configuration maintain a separate configuration for tabs (since the latter are not stored in the config file itself.) But when I do this, the second instance runs unlicensed as a trial copy, even though the registration information is in the config file. The same config file will otherwise run registered if it resides immediately under <xydata>.

Specifically:
  • 1. I create the subdirectory initially as a copy of the <xydata> directory, but containing the XYplorer_search.ini, which does have the [Register] section at the top.

    2. I launch the second instance from the first instance with this script:

    Code: Select all

    run "<xy> /ini=<xydata>\SearchConfig\XYplorer_search /win=normal"
    But I get the trial copy splash screen, and the second instance comes up with the XYplorer_search.ini loaded, but unregistered.

    3. I copy the XYplorer_search.ini file to reside directly under <xydata> and then try launching it this way:

    Code: Select all

    run "<xy> /ini=<xydata>\XYplorer_search /win=normal"
    and it comes up registered.
Jerry

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 06:05
by Jerry
Don,
Any answers on this problem? Is it not possible to run a second instance with ALL of the configuration (tabs, etc) residing in a separate directory?

Jerry

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 08:09
by admin
Please, in the unregistered instance, click Help / Various Information and look at the bottom section (the paths), or post it here.

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 11:01
by PeterH
With regard to registration info: you know you can define it central for all XY on a system?

- "somewhere" add a file xylic.ini containing your registration info:

Code: Select all

[Register]
Name=Peter H
Code=xy01-...
(You can copy these 3 lines from your XYplorer.ini of your registered XY :D
Don't copy dc=... :naughty: )

- add a file admin.ini to the XY install directory, aside XYplorer.exe (if not already there)
- add 2 lines to point to the above xylic.ini:

Code: Select all

[Settings]
Lic=x:\a\b\xylic.ini
Now every XY-instance having that xylic.ini with XYplorer.exe will run registered...

By the way: this also is fine to run registered test-installs of XY :D

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 11:40
by Jerry
admin wrote:Please, in the unregistered instance, click Help / Various Information and look at the bottom section (the paths), or post it here.
Here they are below. They are all pointing to the SearchConfig subdirectory, except for Thumbnailes.

Code: Select all

App:           	P:\Tools\XYplorer\XYplorer.exe
Ini File:      	U:\jerry\Data\XYplorer\SearchConfig\XYplorer_search.ini
App Data Path: 	U:\jerry\Data\XYplorer\SearchConfig\
Pane 1 Data Path: 	U:\jerry\Data\XYplorer\SearchConfig\Panes\MAIN\
Pane 2 Data Path: 	U:\jerry\Data\XYplorer\SearchConfig\Panes\2\
Catalogs Path: 	U:\jerry\Data\XYplorer\SearchConfig\Catalogs\
New Items Path: 	U:\jerry\Data\XYplorer\SearchConfig\NewItems\
Scripts Path: 	U:\jerry\Data\XYplorer\SearchConfig\Scripts\
Thumbs Cache: 	U:\jerry\Data\XYplorer\Thumbnailes
Catalog:      	U:\jerry\Data\XYplorer\SearchConfig\catalog.dat
Tags Database: 	U:\jerry\Data\XYplorer\SearchConfig\tag.dat

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 12:01
by admin
Ah yes, I see. It's like this: the license info is always expected and looked up in a file called XYplorer.ini located in app data path. XYplorer_search.ini alone won't give you a registered version.

PeterH's tip is probably the best solution for you.

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 12:39
by Jerry
PeterH wrote:With regard to registration info: you know you can define it central for all XY on a system?
- "somewhere" add a file xylic.ini containing your registration info:....
Thanks Peter, this seemed to be the ticket, BUT I can't get it to work for some reason.
I put my 3 lines of registration settings in a new file: U:\jerry\Data\XYplorer\XYLicense.ini
I created P:\Tools\XYplorer\admin.ini (where XYplorer.exe resides), containing these lines:

Code: Select all

[Settings]
Lic=U:\jerry\Data\XYplorer\XYLicense.ini
But I still get the evaluation trial mode when I run the second XYplorer instance with this script from within the first instance:

Code: Select all

 run "<xy> /ini=<xydata>\SearchConfig\XYplorer_search /win=normal"
OR when I run it from a Windows command prompt:

Code: Select all

P:\Tools\XYplorer\XYplorer.exe  /ini=U:\jerry\Data\XYplorer\SearchConfig\XYplorer_search.ini
What I am doing wrong?

Jerry

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 16:13
by j_c_hallgren
Jerry wrote:What I am doing wrong?
Just a guess: PeterH said 'xylic.ini' and you used a different name...maybe? I've not used it so not sure.

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 16:18
by Jerry
j_c_hallgren wrote:
Jerry wrote:What I am doing wrong?
Just a guess: PeterH said 'xylic.ini' and you used a different name...maybe? I've not used it so not sure.
Tried that but same result.
J

Re: Registration not recognized with 2nd instance, different

Posted: 19 Jun 2012 23:23
by PeterH
Jerry wrote:What I am doing wrong?

Jerry
Sorry to say: I don't know :(

Maybe it still has something to do with the /ini= switch? In this case Don would have to re-think about it...

I often use it like this in a second XY started from XY - but I don't supply /ini=, but /script=

The statement how I use it is:

Code: Select all

	Run """$instdir\xyplorer.exe"" /script=$script", , 1;
Note:
$instdir is the directory of a second XY-installation, and
$script is the full qualified name of an initial script.
The current script (first XY) waits until the second XY terminates...

Re: Registration not recognized with 2nd instance, different

Posted: 20 Jun 2012 00:14
by Jerry
PeterH wrote:
Jerry wrote:What I am doing wrong?
Jerry
Sorry to say: I don't know :(
Maybe it still has something to do with the /ini= switch? In this case Don would have to re-think about it...
I often use it like this in a second XY started from XY - but I don't supply /ini=, but /script=
The statement how I use it is:

Code: Select all

	Run """$instdir\xyplorer.exe"" /script=$script", , 1;
Oh, that's something different altogether. I just want to use the same installation of XYplorer to run instances with different configurations but also including their own tab configurations. I'm surprised this problem hasn't arisen before.

I'm trying to workaround the blocking search limitation of XYplorer by running searches in separate instances, but I want those instances to have just a single default tab and a single search results tab. Plus I don't want it's settings automatically saved on exit, etc.

Jerry

Re: Registration not recognized with 2nd instance, different

Posted: 20 Jun 2012 08:48
by admin
I tried the Admin.ini way and it works as expected. Don't know what's wrong on your end.

But why don't you simply rename XYplorer_search.ini to XYplorer.ini? Then everything is even easier.

Re: Registration not recognized with 2nd instance, different

Posted: 20 Jun 2012 14:13
by Jerry
admin wrote:I tried the Admin.ini way and it works as expected. Don't know what's wrong on your end.
But why don't you simply rename XYplorer_search.ini to XYplorer.ini? Then everything is even easier.
Ok, it's working now. I think I had to restart the initial XYplorer to get the admin.ini to work. Not sure. Don - I want the second config to have a different name visible on the title frame, just to be extra sure I'm running from a different config.

Thanks,
Jerry

Re: Registration not recognized with 2nd instance, different

Posted: 03 Oct 2012 21:27
by Jerry
Jerry wrote:
admin wrote:I tried the Admin.ini way and it works as expected. Don't know what's wrong on your end.
But why don't you simply rename XYplorer_search.ini to XYplorer.ini? Then everything is even easier.
Ok, it's working now. I think I had to restart the initial XYplorer to get the admin.ini to work. Not sure. Don - I want the second config to have a different name visible on the title frame, just to be extra sure I'm running from a different config.
Thanks,
Jerry
A belated UPDATE: The capability of running additional XYplorer instances using a differently named configuration file and data folder is still working for me, but for some reason it eventually stopped working on my friend's system with network drives. The second XYplorer instance starts up with a Windows error. I couldn't readily see why or fix it and I gave up on the effort.

There ought to be a more formal, explicit feature in XYplorer for running multiple instances with different configurations and data folders so this can be done properly and reliably. This would help work around the other limitation of non-concurrent searching.

Jerry