How-to: Remove a License After Its Has Been Used

On This Page

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

  1. The shared license folder at [CommonApplicationData]\XHEO INC\SharedLicenses\Mirror.
  2. 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.

Published : Oct 19, 2011
Updated : Jan 04, 2012
Views : 5092
  • licensing
  • deploylx

Applies To

Downloads

Folder

View the discussion thread without JavaScript.

Atiqur Rahman Arman: GSCopy Pro v6.0 (RoboCopy Alternative) with Open File Agent GSCopyPro is a single command-line tool (CLI) that can copy, replicate and move files from one folder to another. This folder can be on the same machine/ server or another server elsewhere. What makes GSCopyPro stand out from other competitors is the fact it works on 32-bit as well as 64-bit systems and has no restrictions. It can easily be scheduled to run as a scheduled task and fully automated. GSCopyPro also comes with an open file agent which can copy files that are locked/ opened by other processes. This feature is supported in all windows vSCersions from widows XP/ 2003 and later. Go To:>> http://www.gurusquad.com/GOPYPRO Leave a message...