It may be necessary to delete a license store if the store has become corrupted or has been tampered with.
To remove a Distributor license you also need to delete the Distributor license store. The Distributor license store uses the following registry keys depending on the machine OS:
- 32 bit editions of Windows:
HKEY_LOCAL_MACHINE\Software\InishTech\SLP Services - 64 bit editions of Windows:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\InishTech\SLP Services
Deleting a license store will delete all activated/installed licenses in the store. All deleted licenses will need to be first deactivated on the device and then reactivated; alternatively, new replacement licenses will have to be issued and activated (see Impact of Deletion on Installed Licenses).
Delete Distributor License Store
The recommended approach with Distributor server V3.2.1987 and later is to use the Install.cmd batch file included in the Slps.Distributor.Host folder.
From an elevated command prompt:
- First run "
Install.cmd -obliterate
" to uninstall Distributor AND delete the license store, - Then run "
Install.cmd -install
" to reinstall Distributor.
If your version of Distributor is earlier than V3.2.1987 the Install.cmd batch file will not include the -obliterate option.
In this case, from an elevated command prompt:
- First run "
Install.cmd -uninstall
" to uninstall Distributor, - Then run the attached Obliterate-Distributor-Stores.ps1 script to delete the license store,
- Then run "
Install.cmd -install
" to reinstall Distributor.
Impact of Store Deletion on Installed Licenses
Distributor licenses are by default Single Machine Locked. This means that the initial activation of a Distributor license associates the license with a Device Id, and subsequent activations are restricted to the same machine by checking against this Device Id. This is necessary for effective licensing and there is no option to issue distributor licenses that are not Single Machine Locked.
The Device Id is generated on the initial installation of the server; this identifier, along with a license store to hold the license data, is encoded in a registry key. If you subsequently run the Install.cmd with either the -install or -uninstall options, the registry key, license store and Device Id remain unaffected.
However, if you delete the license store as above, the registry key is deleted and re-installation of Distributor will create a new license store with a new Device Id.
One consequence of this change in Device Id is that it will not be possible to reactivate licenses used with the previous installation without first Deactivating the license on the machine in question. The check against the Device Id performed at activation fails, and an exception is produced.
It is also important to note that license files generated from previous manual activations requests are no longer valid and cannot be reinstalled. In an offline scenario a new manual activation request must be generated and, once activated, the subsequent license file installed.
If it is not possible to deactivate the Distributor licenses on the device, a new license must be issued to replace any licenses associated with the previous installation.
Comments
0 comments
Article is closed for comments.