Online Activation using the QLM License Wizard Standalone Application

QLM provides a standalone application (QlmLicenseWizard.exe) that you can invoke from your application to simplify the process of online activation. When using QlmLicenseWizard.exe, there is almost no need to write any code to implement online activation. This method is ideal for non-.NET applications that cannot use the QLM .NET User Control. Samples are provided for C++, MS-Access, Excel and others.

The QLM License Wizard allows your users to:

  • View the status of their license.

  • View the Check for Updates information and launch the installation of an update.

  • Activate a license online.

  • Activate a license offline (manual activation and activation via a QR Code).

  • Deactivate a license.

  • Display a User Registration page that can automatically generate a trial license.

  • Display an EULA page.

  • Display a Privacy Policy page.

  • and much more

The QlmLicenseWizard.exe can be used on any Windows 7 and higher system and requires that Microsoft .NET 4.62 or later be installed on the end-user system.

To use the QlmLicenseWizard.exe application:

  • From the QLM Console, create a product.

  • Go to the Protect your application tab and follow the instructions in the wizard.

  • Modify your application as follows:

    • When your application is launched, call the ValidateLicenseAtStartup function. This function is generated by the Protect your application wizard in the LicenseValidator class.

    • If the ValidateLicenseAtStartup function returns false, launch the QlmLicenseWizard.exe with the /settings argument.

    • When the QlmLicenseWizard.exe process exits, call ValidateLicenseAtStartup again to ensure that the license is valid.

Once the user has activated his license from the QlmLicenseWizard process, the license key is automatically stored in a hidden location on the end-user system.

Example

LicenseValidator lv = new LicenseValidator ();
if (lv.ValidateLicenseAtStartup(computerID, ref needsActivation, ref returnMsg) == false)
{
    // Launch the QlmLicenseWizard.exe process.
   string settingsFiles = "Demo 1.0.lw.xml"; // you must specify the full path to the settings file
   string args = String.Format("/settings \"{0}\"", settingsFile);

    lv.QlmLicenseObject.LaunchProcess(@"C:\Program Files\Soraco\QuickLicenseMgr\QlmLicenseWizard.exe", args, true, true);
    if (lv.ValidateLicenseAtStartup(computerID, ref needsActivation, ref returnMsg) == false)
    {
        // Exit the application
    }
}

The command-line arguments of QlmLicenseWizard.exe are:

Upon exiting, the QlmLicenseWizard.exe process returns the following exit codes:

Last updated