Share via


How To: Issue and Install a Resident Trial License, and Configure the License Store

A resident license is available both as a commercial and non-commercial license. For resident licenses, it is important to set a time-based expiration date, because there is no activation process, and thus becomes a higher security risk without a firm date of expiration. 

 

To Issue a New Resident License 

  1. Log on to the SLP Online Service.
  2. Click New Resident License in the License section of the navigation pane.
  3. Click Non-Commercial, and then select the product. This establishes the license as a trial or evaluation license.
  4. Select a product from the Product list (required). The screen refreshes to populate the product information from the database.
  5. Select a Feature Set (required) or individual features. An empty default feature set is provided. You can proceed to issue a license without specifying a feature set or features, but it is not recommended.
  6. Click the calendar icon next to the Start Date field to change the date.The Start Date is automatically populated with the current date.
  7. Select the Expire Date field and enter in the desired value. It is recommended that you do not use the Expiration Days field.
  8. Add values for the Concurrent Usage Limit, Total Usage Limit, and Grace Period (days) fields as desired.
  9. Leave the Locking option set to None.
  10. Add a description for the license, and leave the default settings.
  11. Click Issue License.
  12. Download the resident license (binary) file and deliver it to your customer.

 

To Automatically Install the New Resident License 

Software vendors can update their installer so that the resident license is automatically installed on the end user’s computer with your application resources. 

 

Note: This process is optional. An end user can always activate the product through the normal activation process by substituting the resident license file for the activation key. 

 

The following code example demonstrates how to some common code exceptions.

Copy Code

  
    try
  
{
    SLMRuntime runtime = new SLMRuntime();
    ILicense license =
        runtime.Licenses.OpenLicense(licenseFileName);
    runtime.Licenses.InstallLicense(license);
}
catch (LicenseIntegrityException)
{
    MessageBox.Show("Install failed, license file format is invalid");
}
catch (VirtualMachineNotAllowedException)
{
    MessageBox.Show("Install failed, the license cannot be installed on Virtual Machine");
}
catch (InvalidLicenseRevisionException)
{
    MessageBox.Show("A newer version of the same license was already used.");
}

 

To Configure a License Store with the Installer 

You can update your installer to perform a one-time license store configuration. The following code sets the default permissions with the licenseStore.ConfigurePermissions method so that non-administrative users can activate their licensed SLP Services applications.

Copy Code

  
    foreach
   (ILicenseStore licenseStore in runtime.LicenseStores.GetLicenseStores(LicenseStoreType.Unspecified))
{
    licenseStore.ConfigurePermissions();
}
What do you think about this topic? Send feedback!