Search code examples
install4j

install4j- read license value instead of connection to the license server


our CI agent connect to server where install4j process is running. It connects succesfully and reads the license.

Now we need to implement CI pipeline on the agent that does not and will not have connection to license server. So for that reason I wanted to read the license value and set the license value, instead of connecting to the server. Can we just read the value of the license.txt file for that purpose?

License is something like in this format (of course I will not provide real value here):

B-20-1-TEST_COMP_TEST#12345678911-aabbccddxn7w

But, when I try to set this value locally from my machine, instead of the connection to the server to use this raw value I am getting info: "This license cannot be used for this version of install4j".

How is this possible? Since in the same time if we try to connect from the client to the server (instead of entering the licence) then connection pass.

Please assist, I do not have experience with install4j. Any help is appreciated.


Solution

  • Now we need to implement CI pipeline on the agent that does not and will not have connection to license server. So for that reason I wanted to read the license value and set the license value, instead of connecting to the server. Can we just read the value of the license.txt file for that purpose?

    No, that is not possible. Floating license keys cannot be used directly with the client, they only work with the floating license server.

    If you do not have connectivity to the floating license server, you need a build-only license key:

    https://www.ej-technologies.com/buy/install4j/select?target=command_line