Registration not recognized with 2nd instance, different cfg

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
Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Registration not recognized with 2nd instance, different cfg

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

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

Re: Registration not recognized with 2nd instance, different

Post by admin »

Please, in the unregistered instance, click Help / Various Information and look at the bottom section (the paths), or post it here.

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

Re: Registration not recognized with 2nd instance, different

Post 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

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

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

Re: Registration not recognized with 2nd instance, different

Post 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.

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Registration not recognized with 2nd instance, different

Post 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.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

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

Re: Registration not recognized with 2nd instance, different

Post 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...

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

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

Re: Registration not recognized with 2nd instance, different

Post 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.

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

Jerry
Posts: 835
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Registration not recognized with 2nd instance, different

Post 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
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB. SCREEN SCALING: 125%

Post Reply