opscode-cookbooks/windows — pull request #120 by carpnick (2014-09-23 16:03:45+00:00)
Title: Pacakage install enhancement

The exit code was not being honored from the package provider. It was exiting with success on failure.

If we ran a recipe like the following: https://github.com/Webtrends/ms_dotnet4/blob/master/recipes/default.rb

It would succeed on the windows_package command. We were using winrm at the time to run chef-client and this will make .NET 4 install always fail. So we were able to constantly reproduce the issue. The current commit fixed this for us and I assume would also help others with false exit codes.