lock chocolatey version for tomcat 8 install

Setting a locked version to ensure the install packages
are compatible with the version of chocolatey used during install
This commit is contained in:
Jeffrey Martin 2023-02-04 11:21:40 -06:00
parent fe91dcbf67
commit 4cdd76963a
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ Set-StrictMode -Version Latest
$isWin8 = wmic os get caption | find /i '" 8 "'
$isWin2012 = wmic os get caption | find /i '" 2012 "'
$env:chocolateyVersion = '0.10.13'
# skip wrapping for 8 or 2012?
if ($isWin8 -or $isWin2012){
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))