While validating licenses, DeployLX may store serial number, activation and other authorization information in the license file and persist those changes to disk. If the original license file is embedded in an assembly, or permission is denied, DeployLX makes a copy of the license in the shadow folder.
Deleting the License and All Shadow Copies
DeployLX provides the a Delete method on the LicenseFile class to make it easier to remove all copies of a valid license from the machine.
_license = SecureLicenseManager.Valdiate( Me, Nothing, Nothing ) _license.LicenseFile.Delete( True, True )
_license = SecureLicenseManager.Validate( this, null, null ); _license.LicenseFile.Delete( true, true );
Deleting the license file will remove the original and any shadow copies from disk. Shadow copies are kept in one of two locations
- The shared license folder at [CommonApplicationData]\XHEO INC\SharedLicenses\Mirror.
- Isolated storage at [Users]\[User Name]\AppData\Local\IsolatedStorage or [Documents and Settings]\[User Name]\Application Data\Microsoft\IsolatedStorage.
Removing Serial Number and Offline Activation Data Only
Once a serial number has been issued to a license use the ShouldGetNewSerialNumber property to ask the user for a new serial. To completely remove the serial number or reset any offline activation data use ClearSerialNumbersAndActivationData.
Dim info As New LicenseValidationRequestInfo() info.ShouldGetNewSerialNumber = True _license = SecureLicenseManager.Validate(Me, Nothing, info)
LicenseValidationRequestInfo info = new LicenseValidationRequestInfo(); info.ShouldGetNewSerialNumber = true; _license = SecureLicenseManager.Validate( this, null, info );
Resetting Client State
Some limits, like the Time and Use limits, track secure information on the client machine. This data cannot be removed. However, changing either the LimitId or LicenseId will create a new entry in secure storage effectively resetting the limit.