3 set DOWNLOAD_URL=https://aka.ms/vs/17/release/vc_redist.%TARGET_ARCHITECTURE%.exe
4 set DOWNLOAD_FOLDER=..\BuildDependencies\downloads\vcredist\2015-2022
5 set DOWNLOAD_FILE=vcredist_%TARGET_ARCHITECTURE%.exe
7 :: Following commands expect this script's parent directory to be the current directory, so make sure that's so
10 if not exist %DOWNLOAD_FOLDER% mkdir %DOWNLOAD_FOLDER%
12 if not exist %DOWNLOAD_FOLDER%\%DOWNLOAD_FILE% (
13 echo Downloading vc143 redist...
14 curl --retry 5 --retry-all-errors --retry-connrefused --retry-delay 5 --location --output %DOWNLOAD_FOLDER%\%DOWNLOAD_FILE% %DOWNLOAD_URL%
16 :: Restore the previous current directory