Idea ID: 2787484

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

Status : Delivered
over 5 years ago
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.

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.