Visual Studio Build Tools 2022 Offline Installer Guide
C:\vs2022_buildtools_offline\vs_buildtools.exe The UI will open, but all packages are loaded from the local layout – no internet required. | Argument | Effect | |----------|--------| | --quiet | No UI, no prompts. | | --passive | Shows progress bar but no interaction. | | --wait | Process exits only after installation completes. | | --norestart | Suppress automatic reboots. | | --installPath <path> | Target directory (default: Program Files). | | --add <ID> | Install specific workload/component. | | --remove <ID> | Uninstall a workload. | | --includeRecommended | Include recommended components. | | --includeOptional | Include optional components (rarely used). | Part 5: Maintaining and Updating Your Offline Layout The biggest challenge with offline installers is keeping them patched. Microsoft releases updates monthly (security fixes, new SDKs, toolchain improvements). Updating an Existing Layout Run the same layout command on the machine that holds the original layout (the one with internet access):
(run on target offline build server):
vs_buildtools.exe --layout C:\vs2022_buildtools_offline --lang en-US This downloads all available Build Tools workloads and components for English (en-US). It will take a long time (10–100+ GB) and considerable bandwidth. To save space and time, specify only the workloads you actually need. Use --add to include workloads or individual components. visual studio build tools 2022 offline installer
vs_buildtools.exe --layout C:\vs2022_buildtools_offline ^ --add Microsoft.VisualStudio.Workload.VCTools ^ --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 ^ --add Microsoft.VisualStudio.Component.Windows10SDK.20348 ^ --lang en-US C:\vs2022_buildtools_offline\vs_buildtools
C:\vs2022_layouts\ 2024-Q1\ 2024-Q2\ 2024-Q3\ Then update your build agent provisioning scripts to point to the latest frozen version. To reproduce the exact same layout on another machine or for documentation: | | --wait | Process exits only after installation completes
vs_buildtools.exe --layout C:\vs2022_buildtools_offline ^ --add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools ^ --add Microsoft.VisualStudio.Workload.MSBuildTools ^ --lang en-US
The Visual Studio Build Tools 2022 offline installer is an indispensable tool for professional build automation. By creating a local layout, you gain reproducibility, speed, and independence from the internet—critical for CI/CD pipelines, air-gapped networks, and disaster recovery.