How to bind a license to multiple identifiers, serially
string GetUniqueIdentifier()
{
QlmHardware hw = new QlmHardware();
string computerID = hw.GetMotherBoardSerialNumber();
if (String.IsNullOrEmpty(computerID))
{
computerID = hw.GetFirstVolumeSerialNumber ();
if (String.IsNullOrEmpty(computerID))
{
computerID = hw.GetMachineName();
}
}
}
// Example when to call GetUniqueIdentifier
LicenseValidator lv = new LicenseValidator ();
lv.ValidateLicenseAtStartup (GetUniqueIdentifier(), ...);
// When launching the wizard
string args = String.Format ("/settings \"{0}\" /computerID {1}", settingsXmlFile, GetUniqueIdentifier());
lv.QlmLicenseObject.LaunchProcess ("QlmLicenseWizard.exe", args, true, true);PreviousThe number of allowed activation keys per client has now been exceededNextHow to determine the version of the License Server
Last updated