cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tkflex
Level 3

Can I tell my application where to look for a node-locked license file with source code?

Jump to solution

I would like to ship my compiled application (written in C) with a node-locked license file. The licensed feature to look for is set in my source code. Can I also set the path to the .lic file for that feature in my source code? E.g. My application will ship with two folders, .\bin and .\licenses, and I would like the binary in .\bin to look for the lic file in '..\licenses'

I know the end user can set an environment variable like LM_LICENSE_FILE, but is there a way I can set the search path specifically in my code?

Thanks

0 Kudos
(1) Solution
raffie
Level 6

You can set the LM_A_LICENSE_DEFAULT attribute (using lc_set_attr()) to set the license file location.

View solution in original post

(1) Reply
raffie
Level 6

You can set the LM_A_LICENSE_DEFAULT attribute (using lc_set_attr()) to set the license file location.