Skip to content

Instantly share code, notes, and snippets.

@evanniedojadlo
Created February 3, 2017 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanniedojadlo/43bb5d8b62ac98de51c463b6246bf631 to your computer and use it in GitHub Desktop.
Save evanniedojadlo/43bb5d8b62ac98de51c463b6246bf631 to your computer and use it in GitHub Desktop.
Powershell script for TeamCity to perform installations via build
Powershell:
$client = new-object System.Net.WebClient
$client.DownloadFile("https://dl.bintray.com/oneclick/rubyinstaller/ruby-2.3.3-x64-mingw32.7z", "RubyInstaller.7z")
$client.DownloadFile("http://7-zip.org/a/7z1604-x64.exe", "7zip.exe")
& ls
& "${pwd}\7zip.exe" x RubyInstaller.7z
& ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment