Created
January 31, 2016 05:19
-
-
Save jbouse/81bdb93a84348c9c2071 to your computer and use it in GitHub Desktop.
PowerShell install for NuGet.exe
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
$sourceNugetExe = "http://nuget.org/nuget.exe" | |
$targetNugetExe = "$env:TEMP\nuget.exe" | |
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe | |
$p = Start-Process $targetNugetExe -ArgumentList "install NuGet.CommandLine -Output $env:ProgramData -ExcludeVersion -NonInteractive" -wait -NoNewWindow -PassThru | |
Remove-Item $targetNugetExe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment