1234567891011121314151617181920:: MIT license:: Copyright (C) 2024 Intel Corporation:: SPDX-License-Identifier: MIT
set URL=%1set COMPONENTS=%2
curl.exe --output %TEMP%\webimage.exe --url %URL% --retry 5 --retry-delay 5start /b /wait %TEMP%\webimage.exe -s -x -f webimage_extracted --log extract.logdel %TEMP%\webimage.exeif "%COMPONENTS%"=="" ( webimage_extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.) else ( webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.)set installer_exit_code=%ERRORLEVEL%rd /s/q "webimage_extracted"exit /b %installer_exit_code%