Hello,
I am using registry_key resource methods within a ruby block to validate existence and data in registry but registry_data_exists returns true irrespective of what value in actual registry (5.7.3 in my case). I want the second use-case to return false. Am I doing something wrong?
unless registry_data_exists?('HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\winscp3_is1', { name: 'DisplayVersion', type: :string, data: '5.7.3 })`
unless registry_data_exists?('HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\winscp3_is1', { name: 'DisplayVersion', type: :string, data: '5.15.2 })`
I have even tried combining registry_value_exists and registry_data_exists with an AND but no luck.