flexlm | Shell script for license management | Monitoring library
kandi X-RAY | flexlm Summary
kandi X-RAY | flexlm Summary
Shell script for license management
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flexlm
flexlm Key Features
flexlm Examples and Code Snippets
Community Discussions
Trending Discussions on flexlm
QUESTION
In order to create a signed uninstaller, I cannot create this using the usual NSIS WriteUninstaller
command, because the usually script will create the uninstaller and embed it inside the installer, so there is no chance to sign the uninstaller. For details please see https://nsis-dev.github.io/NSIS-Forums/html/t-245688.html.
This means that I would have to create a separate uninstaller script, sign that, and then embed it in the installer using a normal File command. This works in deleting the files; however, since the uninstaller executable that is running, it cannot delete itself, and leaves the uninstaller.exe
and the MyApp
directory behind. Here is my uninstaller script:
ANSWER
Answered 2021-Feb-16 at 22:23The signing code from the Wiki does not use StrCpy
at all, it must be from your StrCpy $IfBack 1
line. Maybe you forgot Var IfBack
above the function.
The code from the wiki should work but here is an alternative version:
QUESTION
Please note that I initially created an installer for two applications based on https://nsis.sourceforge.io/Two_installations_in_one_installer where the first application is the main one while the second application is the license manager. That said, I did remove the nested checkboxes with only one layer of checkboxes. FYI, I have also been referencing this article: https://www.codeproject.com/Articles/24187/Creating-an-Installer?msg=5782957#xx5782957xx
The issue that I am having is that when I run the installer, all of the files from MyApp
and FlexLM
are installed in the $PROGRAMFILES64\${PRODUCT_NAME}
folder and in the C:\${FLEX_DIR}
. So when I am installing two applications, it looks like both SEC1
and SEC3
are executed for the MyApp installation and both SEC1 and SEC3 are executed for the FlexLM
installation:
ANSWER
Answered 2021-Feb-04 at 21:44I just tested the code from the Wiki and it works perfectly. You commented out the loop in SelectFilesA
/B
so no wonder the section logic is broken in your example.
You also have some other issues:
QUESTION
Please note that I initially created an installer for two applications based on https://nsis.sourceforge.io/Two_installations_in_one_installer where the first application is the main one while the second application is the license manager. That said, I did remove the nested checkboxes with only one layer of checkboxes. FYI, I have also been referencing this article: https://www.codeproject.com/Articles/24187/Creating-an-Installer?msg=5782957#xx5782957xx
The issue that I am having is that when I get to the second license manager app, where I click to browse for a custom folder, and create a new custom folder, when I press OK on the browse it then returns with this custom folder but then appends the application name after that. So for example when I return from the browse for custom directory dialog, it would not return with, say:
...ANSWER
Answered 2021-Feb-04 at 03:52Found the solution here:
NSIS Directory Page after Browse for install dir "${PRODUCT_NAME}" is added after selection
So in my case I needed to add a :
QUESTION
Sometimes I loose a toolbox license while running a MATLAB simulation taking several hours. The simulation then stops, I get an error message like:
- License checkout failed
- License Manager Error -5
- Cannot find a license for Communication_Toolbox.
but there is no red error-text you normally get when there's an error in the MATLAB code itself.
Since this license error is not reproducable easily, does anybody know if it is an exception that can be caught within a try/catch? I could then maybe catch it, check the error-message for the word 'license' and keep trying until I get a license again and continue.
Edit: what apparently happens is that every couple of hours the flexlm license server is reset, if someone else then grabs a license before my already running script does, then my scrip is aborted. Or maybe my script tries to check the license while the license server is restarting...
...ANSWER
Answered 2020-Oct-28 at 12:53OK, I just build the try/catch into the code and indeed the license error can be caught. The following represents a function which is called many times in my script and relies on several toolbox licenses. If a license is lost due to license server resets or some other reason, it waits for a minute and tries again. I don't care if the script has to wait an extra hour when running overnight...
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flexlm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page