Old windows cookbook does not support the `returns` attribute.
MODIFY
recipes/_install-windows.rb
recipes/_install-windows.rb
@@ -82,5 +82,9 @@ windows_package 'Datadog Agent' do # ~FC009
installer_type installer_type
options install_options
action :install
+ if respond_to?(:returns)
returns [0, 3010]
+ else
+ success_codes [0, 3010]
+ end
end

Old windows cookbook does not support the `returns` attribute.