To create a complete offline installer (layout) for Microsoft Visual Studio 2022 Community , you must
use the command-line bootstrapper to download the necessary installation files onto a machine with internet access before transferring them to an offline computer Step 1: Download the Bootstrapper
Download the official Visual Studio Community bootstrapper from the Microsoft Download Page or via the direct vs_community.exe link Step 2: Create the Offline Layout Open a Command Prompt with Administrator
privileges and navigate to your download folder. Use the following command to download all workloads and components for English (approx. 70–75 GB): vs_community.exe --layout C:\VS2022Offline --lang en-US Customized Layout (Recommended)
If you don't need every feature, specify only the workloads you require to save disk space: Desktop Development with C++: --add Microsoft.VisualStudio.Workload.NativeDesktop .NET Desktop Development: --add Microsoft.VisualStudio.Workload.ManagedDesktop Include Recommended/Optional: --includeRecommended --includeOptional Step 3: Install Required Certificates microsoft visual studio 2022 community offline installer
Before running the installer on an offline machine, you must manually install the signing certificates included in the layout folder to avoid validation errors: Microsoft Learn Navigate to C:\VS2022Offline\Certificates Right-click each Install Certificate Local Machine Trusted Root Certification Authorities Microsoft Learn Step 4: Run the Installer Offline Transfer the VS2022Offline
folder to the target machine via an external drive. Run the installer from an Administrator Command Prompt using the switch to prevent it from reaching out to the internet: Microsoft Learn C:\VS2022Offline\vs_community.exe --noWeb Command Parameter --layout
Forces the installer to use only local files from the layout. --add
Open Command Prompt as Administrator
Run the bootstrapper with layout command:
vs_community.exe --layout <target_folder> --lang en-US
<target_folder>: Full path to the folder where all installation files will be stored (e.g., C:\VS2022_Offline).--lang: Language pack (e.g., en-US, zh-CN, de-DE). Multiple languages can be added with multiple --lang parameters.Include specific workloads (optional but recommended)
By default, the layout includes all workloads. To reduce size, specify workloads:
vs_community.exe --layout <folder> --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --lang en-US
Use --list or Microsoft documentation for workload IDs.
Complete the download – The tool downloads all required packages. Progress is shown in the command window. To create a complete offline installer (layout) for
vs_community.exe --noweb
or simply double-click vs_community.exe (it will automatically use local layout if no internet is available).Open Command Prompt as Administrator or PowerShell.
Basic command syntax:
vs_community.exe --layout <target_folder> --lang <language>
Example (English, all components):
vs_community.exe --layout D:\VS2022_Offline --lang en-US
This downloads every available workload, component, and SDK – easily exceeding 35–40 GB. For most users, this is unnecessary. Open Command Prompt as Administrator