On a computer with a stable internet connection, download the official bootstrapper for Visual Studio 2022 Community from https://aka.ms/vs/17/release/vs_community.exe . Save it to a convenient folder, like C:\VS2022Bootstrapper .
Assume reasonable defaults: English (en-US), include recommended components for common dev (desktop, .NET, C++), and use vs_community.exe.
You can filter your offline installer to grab only the necessary workloads, drastically reducing the final file size.
vs_community.exe --layout D:\VS2022_Offline ^ --add Microsoft.VisualStudio.Workload.NativeDesktop ^ --add Microsoft.VisualStudio.Workload.ManagedDesktop ^ --add Microsoft.VisualStudio.Workload.Universal ^ --includeRecommended --lang en-US microsoft visual studio 2022 community offline installer
The downloaded file will be named vs_community.exe (or a variation like vs_setup.exe ).
: Secure labs and isolated development environments often restrict internet access entirely.
Note: A complete layout can exceed 40GB to 50GB. This is generally discouraged unless you absolutely need every workload type. Option B: Download Specific Workloads (Recommended) On a computer with a stable internet connection,
To execute the actual installation on the target offline machine:
This adds both English and Simplified Chinese language packs. Remember that each additional language pack adds approximately 0.5 GB of space.
\\NetworkShare\VS2022_Layout\vs_community.exe --update --wait You can filter your offline installer to grab
Navigate to the official Visual Studio 2022 download page (visualstudio.microsoft.com/downloads). Find the edition. Download the small bootstrapper file: vs_community.exe .
This creates a layout for the Visual Studio Community edition in a folder named C:\VS2022Offline . vs_community.exe --layout C:\VS2022Offline Use code with caution.