Comparing With DeployLX
- Open the DeployLX Manager
- Select Generate Code | Compare Machine Hashes from the Home tab on the ribbon
- Copy and paste the two machine profile hashes you want to compare into the Machine Codes section on the form
- Select Compare
The Results section will show the difference ratings and indicate if DeployLX would require the software to be reactivated.
The Type/Match list shows which components are different between the two profiles.
Note: If you have customized the hardware profile weights you will need to open the license file containing the activation limit for the form to report the correct difference ratings.
Diagnostic Comparisons
Sometimes the results from the comparison tool don't match the customer's expectations or a component seems to change each time the machine is profiled. When this happens, you can use the Profile Helper to capture diagnostic profiles of the machine. Submit these profiles to XHEO for analysis.
Comparing In Code
If you haven't changed the weights in your license, you can find the difference by calling the CompareHash method with the default hardware list:
Dim diffs() As MachineProfileEntryType Dim weight As Integer = MachineProfile.CompareHash( _ hash, _ otherHash, _ False, _ MachineProfile.Profile.HardwareList, _ diffs)
MachineProfileEntryType[] diffs; int weight = MachineProfile.CompareHash( hash, otherHash, false, MachineProfile.Profile.HardwareList, out diffs );
The diffs array has a list of all the hardware that is different between the two hashes and the weight field has the calculated difference between the two. When weight is greater than the configured tolerance, DeployLX asks the user to reactivate.
If you have configured different hardware weights then you have to load up your actual license and profile to get an accurate weight calculation. Thediffs array will be the same either way.
Dim license = ...license from somewhere... Dim activation = TryCast(license.Limits(GetType(Activation)), ActivationLimit) Dim profile = activation.Profiles(0) Dim diffs() As MachineProfileEntryType Dim weight As Integer = MachineProfile.CompareHash( _ hash, _ otherHash, _ False, _ profile.Hardware, _ diffs )
var license = ...license from somewhere... var activation = license.Limits[ typeof(Activation) ] as ActivationLimit; var profile = activation.Profiles[ 0 ]; MachineProfileEntryType[] diffs; int weight = MachineProfile.CompareHash( hash, otherHash, false, profile.Hardware, out diffs );