Once you hit enter, the bootstrapper will download the manifest, then begin pulling .cab files. Wait for the final message: "The operation completed successfully." Do not close the window early.
Over time, your offline layout collects old packages. To remove outdated packages not required for the latest version, use:
vs_community.exe --layout C:\VS2022_Layout_Selective --fix --clean
Be careful: This will delete old versions. If you have machines that cannot update to the latest VS version, do not use --clean. visual studio community 2022 offline installer
Creating an offline layout is straightforward but not trivial. Microsoft recommends using the --layout command with the desired workload IDs, which can be listed using --list. However, the process has notable friction:
You now have a portable folder (e.g., C:\VS2022_Layout_Selective). Copy this folder to a USB drive (requires NTFS formatting due to file size), an external HDD, or a network location. Once you hit enter, the bootstrapper will download
On the target offline machine:
The installer will run exactly as the web version would, but it will not attempt to download anything. It will read the local .cab files and proceed with installation. You can select any workload present in your layout—it will not prompt for an internet connection. Be careful: This will delete old versions
The Visual Studio Community 2022 offline installer is not a single file, but a complete, self-contained layout of the IDE and its optional workloads (e.g., .NET desktop development, game development with Unity, C++ cross-platform tools). Unlike the 2 MB web installer, the offline layout typically spans 35–50 GB, depending on the selected components. It is generated using Microsoft’s own bootstrapper commands, specifically the --layout switch. Once created, this layout can be copied to a USB drive, network share, or local hard drive, enabling installation on one or many target machines without further internet access.
Before we proceed, let's clarify two essential concepts.
The offline installer is not a single .exe file but a directory layout containing the bootstrapper plus all the .vsix, .cab, and .nupkg payloads.
Problem: You are trying to install VS into a folder that already has files. Solution: Specify a new, empty directory for the installation target, or delete the contents of the target folder.