Vs 2022 Offline Installer 【2024】
& $Bootstrapper --layout $LayoutPath --lang en-US --includeRecommended ` ($Workloads | ForEach-Object "--add $_" ) --useLatestInstaller --wait
Instead of running the installer directly, use the to create a directory containing all the required packages. Microsoft Learn Create an offline installation - Visual Studio (Windows) vs 2022 offline installer
Microsoft does not auto-delete old versions. Use PowerShell to compare package versions and delete superseded files, or simply rebuild the layout periodically. vs_enterprise
vs_enterprise.exe --quiet --norestart --installpath="C:\Program Files\Microsoft Visual Studio\2022\Enterprise" all languages) | 50–65 GB |
Example InstallConfig.json :
The offline installer provides several installation options, including:
| Configuration | Approximate Size | |---------------|------------------| | Core editor + .NET desktop | 4–6 GB | | Core + .NET + C++ desktop | 12–15 GB | | Full .NET + C++ + UWP + Office + Python | 28–35 GB | | Everything (+optional, all languages) | 50–65 GB |