From 3230c424762eb9c6230933cf9a70aae0d8a530ab Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Tue, 2 Nov 2021 17:01:28 +0300 Subject: [PATCH] [Windows] make choco dummy call for currently installed version (#4410) --- images/win/post-generation/Choco.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/images/win/post-generation/Choco.ps1 b/images/win/post-generation/Choco.ps1 index 3f8e7c8df..0c7566efd 100644 --- a/images/win/post-generation/Choco.ps1 +++ b/images/win/post-generation/Choco.ps1 @@ -1,2 +1,5 @@ -# Step to avoid initial delay for choco scripts -choco upgrade chocolatey \ No newline at end of file +# Step to avoid initial delay for choco scripts. +# On calling the first choco command +# Chocolatey spends 2 minutes cleaning up and removing unneeded packages in the environment. +$ChocoVersion = choco --version +choco upgrade chocolatey --version=$ChocoVersion