Don't like ads? PRO users don't see any ads ;-)
Guest

CHEF WUINSTALL

By: a guest on Aug 3rd, 2012  |  syntax: Ruby  |  size: 0.27 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. wuiFile = "WUInstall.exe"
  2. $wuiFileDest = "#{ENV['TEMP']}"
  3. switches =  " /install /criteria \"IsHidden=0 and IsInstalled=0 and IsAssigned=1\""
  4.  
  5. execute "checking for updates" do
  6.         command "#{$wuiFileDest}\\WUInstall.exe #{switches} > #{$wuiFileDest}\\wuiLog.txt"
  7. end