Skip to content

Commit

Permalink
Update windows provision.bat script
Browse files Browse the repository at this point in the history
- Update the windows provisioning script, script installs
  chocolatey package manager and installs all the required
  packages for the sandbox
  • Loading branch information
theodore86 authored and Theodoros Georgomanolis committed Feb 28, 2023
1 parent 29087c2 commit 280b768
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tools/windows/provision.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ SET DIR=%~dp0%

echo Ensure that your cmd.exe runs as Administrator
echo .
echo If you are behind proxy SET HTTP(S)_PROXY settings
echo If you are behind proxy SET HTTP(S)_PROXY or http(s)_proxy settings
echo .
pause

echo Downloading install.ps1 (chocolatey installation script)
echo .
pause
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "((new-object net.webclient).DownloadFile('https://chocolatey.org/install.ps1','%DIR%install.ps1'))" || goto :error

echo Running chocolatey installer (install.ps1)
echo .
pause
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*" || goto :error
@powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command^
"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"^
|| goto :error
SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

echo Installing project dependencies using chocolatey
echo .
Expand Down

0 comments on commit 280b768

Please sign in to comment.