init vs2022 vm
This commit is contained in:
27
oem/install.bat
Normal file
27
oem/install.bat
Normal file
@@ -0,0 +1,27 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user