This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- Re: Can I tell my application where to look for a node-locked license file with source code?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2022
11:52 AM
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
(1) Solution
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2022
12:39 PM
You can set the LM_A_LICENSE_DEFAULT attribute (using lc_set_attr()) to set the license file location.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2022
12:39 PM
You can set the LM_A_LICENSE_DEFAULT attribute (using lc_set_attr()) to set the license file location.