RUN C:/installer/vs.exe --quiet --wait --norestart --config C:/installer/config.vsconfig && del /f /q C:/installer Visual Studio is a massive tool, but it doesn't have to be a massive distraction. Silent installation turns a 45-minute manual process into a 5-minute scripted one.
Let’s be honest: watching the Visual Studio Installer run interactively is like watching paint dry—except the paint has 15 different workloads, three SDKs, and keeps asking you to reboot. silent install visual studio
vs_enterprise.exe --layout C:\VS2022_Layout \ --add Microsoft.VisualStudio.Workload.NativeDesktop \ --add Microsoft.VisualStudio.Workload.Universal \ --includeRecommended --lang en-US Then, from the target machine, run the silent install from the layout: RUN C:/installer/vs
--nickname "DevOps Build Agent 2022" Here’s how you’d use this in a Windows container: from the target machine