$URL = "https://api.bintray.com/content/habitat/stable/windows/x86_64/hab-%24latest-x86_64-windows.zip?bt_package=hab-x86_64-windows"
Invoke-Webrequest -uri $URL -OutFile habitat.zip
Expand-Archive habitat.zip -DestinationPath C:\
Rename-Item C:\hab-0.78.0-20190313120028-x86_64-windows\ -NewName "habitat"
3. Add Habitat to the path, and set environmental variables - you'll need to open a new powershell window for changes to be reflected.
[System.Environment]::SetEnvironmentVariable("Path", $($env:PATH + ";C:\habitat;"), "Machine")
[System.Environment]::SetEnvironmentVariable("HAB_BLDR_URL", "FQDN_OF_PRIVATE_BLDR", "Machine")
[System.Environment]::SetEnvironmentVariable("http_proxy", "FQDN_of_HTTP_Proxy", "Machine")
[System.Environment]::SetEnvironmentVariable("https_proxy", "FQDN_of_HTTPs_Proxy", "Machine")
Once you opwn a new powershell window you can confirm changes were made with:
Get-Childitem env:
hab sup run
hab svc load origin/packagename --channel unstable --strategy at-once