Need an offline installer for Visual Studio Community 2022? Use the bootstrapper to create an offline layout and install without an internet connection. Follow these steps.
| Scenario | Benefit | |----------|---------| | Air-gapped / secure environments | Install on machines with no internet | | Multiple machines | Download once, deploy to many PCs | | Controlled versions | Freeze a specific VS 2022 version + workloads | | Slow/unreliable internet | Avoid repeated downloads or mid-install failures | | CI/CD build agents | Pre-cached install for automation |
Unlike the web installer, you can specify exactly which workloads and optional components to download in advance.
Example command to create an offline layout (admin cmd):
vs_community.exe --layout D:\VS2022_Offline \
--add Microsoft.VisualStudio.Workload.ManagedDesktop \
--add Microsoft.VisualStudio.Workload.NetWeb \
--add Component.Git \
--lang en-US
This downloads only what you need, saving disk space and bandwidth.
If you manage a computer lab, a small team, or several personal machines, downloading 10–40 GB per machine is wasteful. Create one offline layout on a network share or external drive, then install from that source repeatedly.
vs_community.exe directly from the layout folder.certificates folder is present alongside the bootstrapper.vs_community.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktopYou cannot download a monolithic ISO from Microsoft directly (for Community edition). Instead, you use the Visual Studio Bootstrapper with command-line arguments.
You must also ship the appropriate Visual Studio certificates and .NET Runtime if not included. The layout command automatically includes them, but verify the \certificates folder exists.