Created
January 27, 2010 16:13
-
-
Save JeremySkinner/287961 to your computer and use it in GitHub Desktop.
Download latest NHProf usng Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script to download the latest NHprof build | |
| # Note that this script requires the 7zip command line (http://www.7-zip.org/) | |
| #configuration | |
| $installDir = "C:\Projects\tools\nhprof" | |
| $downloadDir = "C:\Temp\Nhprof" | |
| $7zipexe = "C:\Program Files\7-Zip\7z.exe" | |
| $url = "http://builds.hibernatingrhinos.com/downloadLatest/nhprof" | |
| $file = "$downloadDir\NHProf.zip" | |
| if(test-path $file) { | |
| del $file | |
| } | |
| #download to temp dir | |
| $client = new-object System.Net.WebClient | |
| $client.DownloadFile($url, $file) | |
| #unzip | |
| & $7zipexe x -y ("-o" + $installDir) "$downloadDir\NHprof.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment