2022 Offline Installer //free\\ - Visual Studio Community
Microsoft does not provide a single "all-in-one" executable for offline installation. Instead, you must use a small "bootstrapper" file to download the specific files you need into a local folder (called a "layout") which can then be used to install the software without an internet connection. 1. Download the Bootstrapper
First, download the lightweight installation file for Visual Studio Community 2022 from the Official Visual Studio website. File name example: vs_community.exe 2. Create the Local Layout
Open a Command Prompt or PowerShell, navigate to your downloads folder, and run a command to download only the workloads you need. This saves time and disk space.
To download the full Community edition (Warning: this can be over 40GB):vs_community.exe --layout c:\vslayout --lang en-US
To download only specific workloads (e.g., .NET desktop and Web development):vs_community.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang en-US 3. Install From the Local Layout
Once the download is finished, move the c:\vslayout folder to your offline machine via a USB drive or internal network. Open the folder on the offline machine. Run the vs_community.exe file from inside that folder. visual studio community 2022 offline installer
The installer will now use the local files instead of trying to download them from the internet. Pro Tips for Offline Users
Certificates: If your offline machine is completely disconnected from the internet, you may need to manually install the certificates located in the certificates subfolder of your layout before starting the installation.
Updates: To update your offline installer later, run the same --layout command again pointing to the same folder; it will only download the new or updated files. AI responses may include mistakes. Learn more
Create an offline installation - Visual Studio (Windows) - Microsoft Learn
11. Script Example (PowerShell)
Automated creation for a team:
$layoutPath = "D:\VS2022_Offline" $bootstrapper = ".\vs_community.exe"& $bootstrapper --layout $layoutPath
--add Microsoft.VisualStudio.Workload.ManagedDesktop--add Microsoft.VisualStudio.Workload.NativeDesktop--add Microsoft.VisualStudio.Workload.NetWeb--includeRecommended--lang en-US--quiet
if ($LASTEXITCODE -eq 0) Write-Host "Offline layout created at $layoutPath" else Write-Error "Layout creation failed"
5.1 Interactive Install
Run the bootstrapper from the layout root:
c:\vs2022_offline\vs_community.exe
It will install only from the local layout (no internet download) as long as --noweb is used. Microsoft does not provide a single "all-in-one" executable
How to Update Your Offline Layout
Go back to your original internet-connected machine. Open an admin command prompt inside your original layout folder. Run the same layout command, but add the --fix flag.
vs_community.exe --layout C:\VS2022_Layout_Selective --fix
This compares your local packages against Microsoft’s servers and downloads only the changed files. This is much faster than a full redownload.
5.2 Silent / Unattended Install
c:\vs2022_offline\vs_community.exe --quiet --wait --norestart
With a predefined workload:
c:\vs2022_offline\vs_community.exe --quiet --wait --norestart ^
--add Microsoft.VisualStudio.Workload.ManagedDesktop ^
--includeRecommended
What it is
An offline installer (layout) for Visual Studio Community 2022 lets you download all required packages and components to a local folder or removable drive so you can install or reuse Visual Studio on machines without internet access or with limited bandwidth.