Skip to content

Instantly share code, notes, and snippets.

@peterwooley
Created August 12, 2012 07:46
Show Gist options
  • Save peterwooley/3330530 to your computer and use it in GitHub Desktop.
Save peterwooley/3330530 to your computer and use it in GitHub Desktop.
Run the latest Cygwin setup.exe to install or upgrade Cygwin
# Run the latest Cygwin setup.exe to install or upgrade Cygwin
# Make sure to run `Set-ExecutionPolicy RemoteSigned` in PowerShell
# prior to the execution of this script.
$file = "$env:temp\setup.exe"
(new-object System.Net.WebClient).DownloadFile("http://cygwin.com/setup.exe", $file)
& $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment