2021-01-27 05:16:23 +00:00
|
|
|
Get-Date
|
|
|
|
Write-Host "Installing Chocolatey"
|
2021-10-01 09:11:04 +00:00
|
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force;
|
|
|
|
# Force TLS 1.2
|
|
|
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
|
|
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
2021-01-27 05:16:23 +00:00
|
|
|
Import-Module "$env:ProgramData\chocolatey\helpers\chocolateyProfile.psm1"
|
|
|
|
Update-SessionEnvironment
|
|
|
|
|
2021-08-18 12:16:24 +00:00
|
|
|
choco install -y vcredist140
|
|
|
|
$vc140_install = $?
|
|
|
|
|
2021-01-27 05:16:23 +00:00
|
|
|
Write-Host "Installing Chocolatey packages"
|
2020-01-21 18:22:56 +00:00
|
|
|
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
2021-01-27 05:16:23 +00:00
|
|
|
$cmake_install = $?
|
|
|
|
|
2020-08-28 16:30:41 +00:00
|
|
|
choco install -y git --params "/NoAutoCrlf /NoCredentialManager /NoShellHereIntegration /NoGuiHereIntegration /NoShellIntegration"
|
2021-01-27 05:16:23 +00:00
|
|
|
$git_install = $?
|
|
|
|
|
2020-08-28 16:30:41 +00:00
|
|
|
choco install -y python3 git-lfs 7zip
|
2021-01-27 05:16:23 +00:00
|
|
|
$rest_installs = $?
|
|
|
|
|
2021-08-18 12:16:24 +00:00
|
|
|
if (!($vc140_install -and $cmake_install -and $git_install -and $rest_installs)) {
|
2021-01-27 05:16:23 +00:00
|
|
|
Write-Host "Failed to install some dependencies from choco"
|
|
|
|
Exit 1
|
|
|
|
}
|