Skip to main content
Solved

Is there a way to check if FME form is licensed from the command line?

  • October 29, 2023
  • 2 replies
  • 70 views

james_c_452
Enthusiast
Forum|alt.badge.img+8

Hi,

I haven't quite been able to work this out. Is there a way to check if FME form is licensed from the command line? Before you try to open FME.

I ask because I am making a batch file and I wish to check before it starts to let the user know if they need to update it

Any help would be appreciated

Regards

Best answer by david_r

Try the following command:

fme.exe info

The output will include information about:

Edition
Version
OS Locale Name
OS Encoding
Process Encoding
FME API version
Registration Key
Registration
Serial Number
Customer Number
Home Folder
Operating System

 You can then use e.g. Powershell to extract the license information from the "Registration" entry.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • Best Answer
  • October 30, 2023

Try the following command:

fme.exe info

The output will include information about:

Edition
Version
OS Locale Name
OS Encoding
Process Encoding
FME API version
Registration Key
Registration
Serial Number
Customer Number
Home Folder
Operating System

 You can then use e.g. Powershell to extract the license information from the "Registration" entry.


james_c_452
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • October 31, 2023

Thanks @david_r​ !

 

I ended up using a different method in a Windows batch because it was quicker for me not to work out how to use Powershell, but its the same result basically the same except that you need to know what the license is rather than being a wildcard.

 

find "*LICENSE_NAME*" "C:\\ProgramData\\Safe Software\\FME\\Licenses\\fme_license.dat"

if %ERRORLEVEL% EQU 0 (

echo FME is unlicensed

) else (

echo FME is licensed

)