Maxilib::Shellout error

Greetings Professionals,

I have been trying to install some agents on my windows node (Ex: datadog/symantec/cloudhealth) i dont know why i am getting this error could not able to figure out

Recipe Example:

windows_package ‘Microsoft Visual C++ 2005 Redistributable’ do
source 'https://download.microsoft.com/download/6/B/B/6BB661D6-A8AE-4819-B79F-236472F6070C/vcredist_x86.exe
installer_type :custom
options '/Q’
end

it could able to compile/run the recipe but when the installation process starts it takes like 10mins and breaks out the process resulting in below error . i have tried installing maually it hardly takes less than 5mins time for each agent to get installed

ERROR
####################################################################

10.0.108.104 [2017-03-08T17:10:29+00:00] FATAL: Mixlib::ShellOut::CommandTimeout: windows_package[Microsoft Visual C++ 2005 Redistributable] (vcredist::default line 10) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
10.0.108.104 ---- Begin output of start “” /wait “c:\chef\cache\package\vcredist_x86.exe” /s & exit %%%%ERRORLEVEL%%%% ----
10.0.108.104 STDOUT:
10.0.108.104 STDERR:
10.0.108.104 ---- End output of start “” /wait “c:\chef\cache\package\vcredist_x86.exe” /s & exit %%%%ERRORLEVEL%%%% ----
10.0.108.104
10.0.108.104 ProcessId: 4160
10.0.108.104 app_name: C:\Windows\system32\cmd.exe
10.0.108.104 command_line: cmd /c "start “” /wait “c:\chef\cache\package\vcredist_x86.exe” /s & exit %%%%ERRORLEVEL%%%%"
10.0.108.104 timeout: 600
ERROR: Failed to execute command on 10.0.108.104 return code 1
ERROR: Bootstrap command returned 1

################################################################################

I tried to install windows plugin and i get this error : command i use gem install knife-windows

gem install knife-windows
Building native extensions. This could take a while…
ERROR: Error installing knife-windows:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
mkmf.rb can’t find header files for ruby at /usr/lib/ruby/ruby.h

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ffi-1.9.18 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ffi-1.9.18/ext/ffi_c/gem_make.out

I even checked whether cookbook are uploaded on chef-server by command : Knife cookbook list it showed me the list of cookbooks that i uploaded

But when i use this command to verify sudo chef-client --runlist “symantec” it says no cookbook found on chef server…

Can any one help me in this to figure out what exactly the problem is

Thank you