Bundle action requirement "Registry Key Value" and "Sting Type" is only a sign by sign compare

Idea ID 2787484

Bundle action requirement "Registry Key Value" and "Sting Type" is only a sign by sign compare

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.
5 Comments
Micro Focus Expert
Micro Focus Expert
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
Super Contributor.
Super Contributor.
Good idea! I would like to have this too.
Absent Member.
Absent Member.
Still not possible in 2017u2. How about implementing a "contains" ?
Contributor.
Contributor.
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!
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
Status changed to: Delivered

This idea has been delivered as part of ZENworks 2020 Update 1. Now an option for 'Contains' exist when comparing registry keys. Also version compare has been enhanced to make it more accurate.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.