To install Visual Studio 2022 offline, you must first local layout
Command-line installation (Silent / Unattended): visual studio 2022 offline install
vs_enterprise.exe --layout D:\VS2022_Layout ^
--add Microsoft.VisualStudio.Workload.ManagedDesktop ^
--add Microsoft.VisualStudio.Workload.NetWeb ^
--includeRecommended --lang en-US
| Switch | Description |
| :--- | :--- |
| --layout <path> | Specifies the directory where the offline installation files will be stored. |
| --add <workload ID> | Specifies the workload(s) to include. |
| --includeRecommended | Includes recommended packages for selected workloads. |
| --includeOptional | Includes optional packages (results in a larger download). |
| --lang <locale> | Specifies the language packs to include (e.g., en-US). | To install Visual Studio 2022 offline, you must