The CIM_OSVersionCheck class specifies the versions of the OS that can support this software element. This check can be for a specific, minimum, maximum or a range of releases of an OS. To specify a specific version the minimum and maximum versions must be the same. To specify a minimum, the minimum version needs only be specified. To specify a maximum version, the maximum version needs only be specified. To specify a range both minimum and maximum version need to be specified. The type of operating system is specified in the TargetOperatingSystem property of the owning software element. The details of this checks are compared with the corresponding details found in a CIM_OperatingSystem object referenced by CIM_InstalledOS association for the CIM_ComputerSystem object that describes the environment. As long as there is at least one CIM_OperatingSystem that satisfies the details of the condition, the check is satisfied. In other words, all the operating systems on the relevant computer system do not need to satisfy the condition. There needs to be at least one. Also, note the OSType property of the CIM_OperatingSystem class must match the type of the TargetOperatingSystem property.
' The invoke method is to evaluate a particular check. The details of how the method evaluates a particular check in a CIM context is described by the non-abstract CIM_Check sub classes. The results of the method are based on the return value. - A 0 (zero) is returned if the condition is satisfied. - A 1 (one) is returned if the method is not supported. - Any other value indicates the condition is not satisfied. '
' The CheckMode property is used to indicate whether the condition is expected to exist or not exist in the environment. When the value is True, the condition is expected to exist (e.g., a file is expected to be on a system) so invoke() is expected to return True. When the value is False, the condition is not expect to exist (e.g., a file is not to be on a system) so invoke is expected to return false '
' The CIM_OSVersionCheck class specifies the versions of the OS that can support this software element. This check can be for a specific, minimum, maximum or a range of releases of an OS. To specify a specific version the minimum and maximum versions must be the same. To specify a minimum, the minimum version needs only be specified. To specify a maximum version, the maximum version needs only be specified. To specify a range both minimum and maximum version need to be specified. The type of operating system is specified in the TargetOperatingSystem property of the owning software element. The details of this checks are compared with the corresponding details found in a CIM_OperatingSystem object referenced by CIM_InstalledOS association for the CIM_ComputerSystem object that describes the environment. As long as there is at least one CIM_OperatingSystem that satisfies the details of the condition, the check is satisfied. In other words, all the operating systems on the relevant computer system do not need to satisfy the condition. There needs to be at least one. Also, note the OSType property of the CIM_OperatingSystem class must match the type of the TargetOperatingSystem property. '