Skip to content

Instantly share code, notes, and snippets.

@wildbillcat
Last active March 11, 2016 13:34
Show Gist options
  • Save wildbillcat/e55416484bf77056de8b to your computer and use it in GitHub Desktop.
Save wildbillcat/e55416484bf77056de8b to your computer and use it in GitHub Desktop.
remote_file "Download: #{data_bag_item("deployment_shares", "vendor_media")["http"]}/Microsoft/TFS/2015/build/agent.msi" do
path "C:/Appstaging/agent.msi"
source "#{data_bag_item("deployment_shares", "vendor_media")["http"]}/Microsoft/TFS/2015/build/agent.msi"
action :create
end
powershell_script 'Install Visual_Studio_2015' do
code <<-EOH
msiexec /i "C:/Appstaging/agent.msi" /qn /norestart
EOH
guard_interpreter :powershell_script
not_if "Test-Path -Path 'C:/Program Files/Visual_Studio_Enterprise_2015_English'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment