Vs 2022 Offline Installer !!top!! -

Use --add with specific component IDs (not workloads) to trim size further. CreateLayout.ps1

if ($LASTEXITCODE -eq 0) Write-Host "Layout created successfully at $LayoutPath" else Write-Error "Layout creation failed with exit code $LASTEXITCODE" vs 2022 offline installer

$Workloads = @( "Microsoft.VisualStudio.Workload.ManagedDesktop", "Microsoft.VisualStudio.Workload.NetWeb", "Microsoft.VisualStudio.Workload.NativeDesktop" ) $LayoutPath = "D:\VS2022_Layout" $Bootstrapper = "vs_enterprise.exe" & $Bootstrapper --layout $LayoutPath --lang en-US --includeRecommended ` ($Workloads | ForEach-Object "--add $_" ) --useLatestInstaller --wait Use --add with specific component IDs (not workloads)