@echo off set BOOTSTRAPPER=vs_Enterprise.exe set LAYOUT_PATH=D:\VS2022_Enterprise_Offline set WORKLOADS=Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.NativeDesktop set LANGUAGES=en-US %BOOTSTRAPPER% --layout %LAYOUT_PATH% --add %WORKLOADS% --includeRecommended --lang %LANGUAGES% --useLatestInstaller
vs_Community.exe --layout C:\VS2022_Offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --lang en-US
vs_Community.exe --layout --list Over time, Microsoft releases updates (security patches, new features). To refresh your offline cache: visual studio 2022 offline download
vs_Community.exe --quiet --config install_config.json --noweb Here are frequently used IDs for --add :
To list available IDs:
vs_Enterprise.exe --layout D:\VS2022_Full_Offline --all --lang en-US de-DE fr-FR ja-JP zh-CN
vs_<Edition>.exe --layout <path_to_offline_folder> --add <workload_or_component_ID> --includeRecommended --includeOptional --lang <language_code> @echo off set BOOTSTRAPPER=vs_Enterprise
| Workload | ID | |----------|-----| | .NET desktop development | Microsoft.VisualStudio.Workload.ManagedDesktop | | Desktop development with C++ | Microsoft.VisualStudio.Workload.NativeDesktop | | Universal Windows Platform dev | Microsoft.VisualStudio.Workload.Universal | | Game development with Unity | Microsoft.VisualStudio.Workload.ManagedGame | | Game development with C++ | Microsoft.VisualStudio.Workload.NativeGame | | ASP.NET and web dev | Microsoft.VisualStudio.Workload.NetWeb | | Azure development | Microsoft.VisualStudio.Workload.Azure | | Data storage and processing | Microsoft.VisualStudio.Workload.Data | | Office/SharePoint dev | Microsoft.VisualStudio.Workload.Office |