Visual Studio 2022 Offline Install
If you need Visual Studio in a language other than the operating system's default language, you must include language packs in your layout command.
Example: Adding Spanish and French
vs_community.exe --layout C:\VS2022Offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --lang es-ES fr-FR
On the target machine (disconnected from internet), run: visual studio 2022 offline install
D:\VS2022_Offline\vs_enterprise.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended
Key offline flags:
| Workload Description | Workload ID |
| :--- | :--- |
| .NET desktop development | Microsoft.VisualStudio.Workload.ManagedDesktop |
| Desktop development with C++ | Microsoft.VisualStudio.Workload.NativeDesktop |
| Universal Windows Platform development | Microsoft.VisualStudio.Workload.Universal |
| Game development with C++ | Microsoft.VisualStudio.Workload.NativeGame |
| Game development with Unity | Microsoft.VisualStudio.Workload.ManagedGame |
| ASP.NET and web development | Microsoft.VisualStudio.Workload.NetWeb |
| Azure development | Microsoft.VisualStudio.Workload.Azure |
| Python development | Microsoft.VisualStudio.Workload.Python |
| Node.js development | Microsoft.VisualStudio.Workload.Node |
| Office/SharePoint development | Microsoft.VisualStudio.Workload.Office |
| Data storage and processing | Microsoft.VisualStudio.Workload.Data | If you need Visual Studio in a language
Open Command Prompt as Administrator and navigate to your bootstrapper folder.
Replace the path in the command below with the location where you want to save the files. On the target machine (disconnected from internet), run:
vs_community.exe --layout c:\VS2022Offline --lang en-US
If you need a single SDK or component not in a full workload, use --add with the Component ID. To find a full, up-to-date list, run the bootstrapper interactively once on an online machine, start the installation, then check the %TEMP% folder for a file named vs_installer.opc (rename to .html to view) or use the command:
vs_enterprise.exe --layout C:\temp\layout --list
This will list every available package ID.
Open the Command Prompt (cmd) on your internet-connected machine. You need to run the bootstrapper with specific command-line arguments to download the files rather than installing them.