In ZCM Version 11.4.1 it is impossible to do a reliable compare of windows registry values that are of type string.
The reason for this is because of an sign by sign compare.
But it would be very very useful if i could do an reliable comparison of version numbers in "REG_RZ" value-types in the windows registry.

Example:
Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer
ValueName: svcVersion
ValueType: REG_RZ
Values: "9.0.8112.16421" and "11.0.9600.18124"

or also generally very common place to find out the version of an installed application:

Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\..\
ValueName: DisplayVersion
ValueType: REG_RZ
Values: "4.0" and "24.0"

If i compare the values "9.0.8112.16421" < "11.0.9600.18124" then this is false, because of the sign by sign compare (9 is greater then 1).

If this would work "correctly" and reliable then we could use one of the main places in windows to decide if an bundle action (for example install msi) has to executed or not.

Comments

  • While I have Voted for this Idea to allow for a special "Version String" type of selection when configuring system requirements in the ZCC......It is still "possible" to achieve this result today via scripts and "zero-padding".

    See - https://forums.novell.com/showthread.php/505958-How-to-compare-Version-Numbers-saved-as-Strings-in-the-Reg?p=2469543#post2469543

  • Good idea! I would like to have this too.

  • Still not possible in 2017u2.
    How about implementing a "contains" ?

  • Just stumbled into this behavior today wondering why my deployment didn't work reasonably - found the error here and it is deceiving - this version-control is a must have if I want to automatize the decision about who needs and who doesn't need a bundle!

    Please do implement this, it makes sense!