Uninstall on Windows

Use these steps to uninstall the license server service on Windows.

To uninstall the license server service on Windows

1. As an administrator, open a command prompt and navigate to the license server’s installation directory.
2. Execute the command flexnetls.bat -stop to stop the service.
3. Execute the command flexnetls.bat -uninstall to uninstall the license server service. (If you attempt to uninstall the service before stopping it, a message appears indicating that you need to stop the service first.)
4. To ensure there are no hanging instances or services, execute sc delete FNLS-producer_name as an administrator.

Either the command will fail with the message The specified service does not exist as an installed service, or it will succeed with the message [SC] DeleteService SUCCESS. Both outcomes indicate that the service is no longer present.

5. Delete the license server component files from the installation folder.
6. Optionally, delete these files (listed here with their default locations):
The trusted storage files in C:\Windows\ServiceProfiles\NetworkService\flexnetls\producer_name (the .ks, .db, and .0 files)
The log files in C:\Windows\ServiceProfiles\NetworkService\flexnetls\producer_name\logs 

Trusted storage and log locations are defined by the license server policies server.trustedStorageDir and logging.directory, respectively, the defaults for which are based on ${bases.dir}. Depending on the values set for these policies on your server, your trusted storage and log files might be in locations different from those mentioned in this step. See Reference: License Server Policy Settings.