DeployLX Software Protection System

How to Manually Protect An Assembly

Use the Project Wizard to add licensing support to C# and Visual Basic .NET projects for Visual Studio .NET 2008 and 2010. For other project types add licensing support manually.

Create the License Keys

Step 1, create the license signing keys used to authenticate licenses and generate serial numbers, activation codes and extensions.

To create license signing keys

  1. Select Key Manager from the Home tab on the Ribbon of the DeployLX Manager.
  2. The Key Manager will be displayed. Select New Keys.
  3. The Create Keys form will be displayed. Enter a descriptive name for the keys. Used only for displaying the keys in the DeployLX Manager.
  4. Select OK to create the new keys.
  5. A message is displayed prompting to backup the keys. Select Yes to backup and follow on screen instructions to save the keys or No to skip.

Exporting Keys

The protected assembly must be associated with the keys.

To export the license signing keys to a project

  1. Select Key Manager from the Home tab on the Ribbon of the DeployLX Manager.
  2. The Key Manager will be displayed. Select the keys to be exported from the Installed Keys list.
  3. Select Export.
  4. Choose either C# or Visual Basic DeployLXKeys file and select OK to export.
  5. Save the generated file to the same location as the AssemblyInfo file of your project.
  6. Open the project in Visual Studio .NET.
  7. Select Project | Add Existing Item from the menu.
  8. Select the file saved in step 5.

Reference the Licensing Runtime

After the keys have been added to the project you must add a reference to the appropriate version of the licensing runtime.

To add a reference to the licensing runtime

  1. Open the project in Visual Studio .NET
  2. Select Project | Add Reference from the menu.
  3. Select the DeployLX.Licensing.v5.dll from the .NET Framework version folder of the Redistributables folder where DeployLX was installed.

Adding a License

To add a license

  1. Select New License from the Home Tab of the Ribbon.
  2. Save the license as runtime.lic in the root folder of your project.
  3. In Visual Studio, select Project | Add Existing Item.
  4. Select the runtime.lic file created earlier.
  5. Open View | Properties Window.
  6. Change the Build Action for the runtime.lic to Embedded Resource.

See Also