For some products, they appear in the registry ARP twice: one with SystemComponent
value and the other without.
While running requirement and detection scripts for ConfigMgr Apps and Intune, we need to be able to add a relative control when looping through the registry to correctly identify the product we're searching for.
For example, find a registry key under ARP where DisplayName
is x and DisplayVersion
is y, but also must (or must not) contain registry value j with data k.
For now the immediate need is to determine if SystemComponent exists or not when looping over each key. However I think an ideal solution would enable detection of any given value/data.