VS Community 2019 Installer

Posted by John Liu on Wednesday, July 10, 2024

Microsoft now only support download of the latest VS Community edition from its website. If you need older version of the Community edition, following PowerShell script will help (for VS2019 Community, chage the url for other version might work). You can skip the step D part if don’t want the entire offline installer to be downloaded.

CLS

# A) Specify the download URL for the Visual Studio 2019 Community edition offline installer
$url = "https://aka.ms/vs/16/release/vs_community.exe"

# B) Specify the path where you want to save the downloaded installer
$outputPath = "D:\temp\vs_community.exe"

# C) Download the file using Invoke-WebRequest
Invoke-WebRequest -Uri $url -OutFile $outputPath

# D) Download the entire offline installer, if needed.
# (Must be in same folder as vs_community.exe)
# a) Specify where to put *ALL* the files for the full offline installer (?)
$layoutOutputPath = "D:\temp\VS2019CommunityLayout"

# b) Start the (long?) download process
Start-Process -FilePath "$outputPath" -ArgumentList "--layout $layoutOutputPath" -Wait