Uninstall on Windows

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

Important Note for Uninstalling the License Server

If you installed the license server using the command-based installation, you must follow the instructions in Uninstalling a Command-Based License Server to uninstall it.

If you installed the license server using the InstallAnywhere installer, you must follow the instructions in Uninstalling Using the InstallAnywhere Uninstaller to uninstall it.

Uninstalling a Command-Based License Server

This section describes the steps you need to perform if the license server was installed using the command-based installer.

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 

Important:Deleting the trusted storage files erases all the licenses and their usage data along with configuration information. This can be safely done in your test environment where there is no impact on production data. In some cases, Revenera support may ask you to delete trusted storage files to resolve an issue. For general upgrades, we do not recommend deleting the trusted storage files.

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.

Uninstalling Using the InstallAnywhere Uninstaller

If you installed the license server using the InstallAnywhere installer, the installer will have placed an uninstaller called FlexNet Embedded Local License ServerUninstaller.exe in the installation directory. The default location is C:\ProgramData\flexnetls\<producer_name>\_FlexNet Embedded Local License Server_installation.

To uninstall the license server service on Windows using the InstallAnywhere uninstaller

1. Stop the service: In the Windows Services window (services.msc), locate the service FlexNet License Server - producer_name. Right-click the service and click Stop.

Note:(Note that in the Services tab of the Task Manager, the service’s display name is FNLS-producer_name.)

2. Double-click the uninstaller, FlexNet Embedded Local License ServerUninstaller.exe. InstallAnywhere uninstalls the license server.
3. Delete the license server component files from the installation folder.
4. 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 

Important:Deleting the trusted storage files erases all the licenses and their usage data along with configuration information. This can be safely done in your test environment where there is no impact on production data. In some cases, Revenera support may ask you to delete trusted storage files to resolve an issue. For general upgrades, we do not recommend deleting the trusted storage files.

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.