09-30-2019 02:12 PM
I would like to find the best way to check programatically if a GeoMedia license is installed, using GeoMedia objects.
What is the best way to do this?
Solved! Go to Solution.
09-30-2019 10:50 PM
I was dealing with this problem some time ago and could not find any acceptable solution. I don't think it is possible using GM Objects. Perhaps the only way is to create GMMapView object (btw. this is probably the only one checking for the license) in a try ... catch block and check the possible exception. But this is not very convenient.
10-17-2019 03:04 AM
I had a similar problem, it was to get the hostID of a machine without installing the Licensing Administrator on the client machine
I have wrtitten a code making the following actions :
In your case, you can use the same method, but just check if the licerr.txt is empty or not. If empty -> license valid, if not empty -> license invalid
10-18-2019 01:28 PM
Thank you for the suggestion Benoît. That is a clever solution!
For now we have put a try/catch statement around the piece of code that creates the Map View which is a good indication that the license is not present.