Skip to content

Instantly share code, notes, and snippets.

@jbouse
Created January 31, 2016 05:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbouse/81bdb93a84348c9c2071 to your computer and use it in GitHub Desktop.
Save jbouse/81bdb93a84348c9c2071 to your computer and use it in GitHub Desktop.
PowerShell install for NuGet.exe
$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