- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- Re: Automating the use of LM_PROJECT on the client side
- 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
Automating the use of LM_PROJECT on the client side
Are there any documented recommendations for using LM_PROJECT on the client side? The primary use case for my question is a customer who has multiple projects that their employees need to bill hours toward and wants to track the usage of the engineering apps towards these projects. They don't want their users to have to manually set environment variables every time. Are there some batch files/scripts available for public consumption to automate?
Also, for Windows systems, is the environment variable preferable to the registry entry (I would assume in this case, yes) and can someone provide me the format of the registry entry for LM_PROJECT? I know it goes in HKEY_CURRENT_USER\Software\FLEXlm License Manager, but wanted to verify you would simply add a String value called LM_PROJECT to that registry key and populate with the project name (and any other caveats like no special characters).
Principal Consultant: Flexera One - FNMS - FNMforSAP - FNMEA - SVM/SVR - SaaS Manager
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Since the LM_PROJECT environment variable is only read when a client application starts-up, one could implement a simple .bat file (on Windows) to set the variable and then launch the application.
set LM_PROJECT=Project1
MyApplicationName.exe
If you create a New System Environment variable, that could be the default LM_PROJECT and the client (using a bat file for example) could reset it to a new setting.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Laurent,
Thanks for sharing your success with a similar project. Good point about trusting the user not to bypass the bat files. If the application itself were to modify the project under the covers based on user input, that might mitigate that loop hole.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Bill,
Great project. We have developed such a framework in Australia with FNMEA + a Flex-enabled Agent to detect usage of apps, show a popup to the engineer with a drop down, and record usage against a specific LM_PROJECT. Note that the engineer can work on multiple projects simultaneously, and that it is not limited to Flex enabled apps. This has worked for 5 years now, with more than 1000+ engineers, the company use it to recover the cost of software back to their customers. Feel free to contact me if you want more details, cheers
Laurent
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)