Skip to content

Commit

Permalink
Merge pull request #2 from dragon788/patch-1
Browse files Browse the repository at this point in the history
Fix Chocolatey install
  • Loading branch information
brucedominguez authored Jul 11, 2020
2 parents c370165 + b6bb5f6 commit 9c7189f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/exampleChoc.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Install Chocolatey
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# https://chocolatey.org/docs/installation#install-with-powershellexe
# Need the SecurityProtocol bit because the Chocolatey.org site only responds to TLS1.2 now
# https://chocolatey.org/blog/remove-support-for-old-tls-versions
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Globally Auto confirm every action
choco feature enable -n allowGlobalConfirmation

Expand Down

0 comments on commit 9c7189f

Please sign in to comment.