vs2022-vm/oem/install.bat
2025-01-14 20:35:12 -05:00

28 lines
722 B
Batchfile

@echo off
:: we have to loop a bunch, for some reason there is a
:: delay in when `winget` is added to the path
echo waiting for winget command to become available....
:loop
where winget > nul 2>&1
if %errorlevel% equ 0 (
echo winget command found!
) else (
timeout /t 5 /nobreak > nul
goto loop
)
@echo on
winget install -e --id Microsoft.VisualStudio.2022.BuildTools --accept-source-agreements --override "--passive --wait"
winget install -e --id Microsoft.VisualStudio.2022.Community --accept-source-agreements --override "--passive --wait"
:: install extentions
powershell -executionpolicy remotesigned -File C:\OEM\vs_extentions.ps1
winget install Mozilla.Firefox --accept-source-agreements
pause