Replace <folder_path> with the path to the folder where you want to save the offline installer files, <language> with the language you want to install (e.g., en-US ), and Microsoft.VisualStudio.Workload.CoreEditor with the workload or component you want to include.
⚠️ Visual Studio 2022 requires a – Windows 7 is not supported. visual studio 2022 enterprise offline installer
vs_enterprise.exe --layout C:\vslayout
vs_enterprise.exe --layout C:\VS2022_Offline --lang en-US ^ --add Microsoft.VisualStudio.Workload.ManagedDesktop ^ --add Microsoft.VisualStudio.Workload.NativeDesktop ^ --add Microsoft.VisualStudio.Workload.NetWeb ^ --add Microsoft.VisualStudio.Workload.Universal Replace <folder_path> with the path to the folder