This is a specialized request, as is nearly 20 years old (end of support in 2016). Official downloads are no longer available from Microsoft’s main site, but the component you likely need is the Visual Studio 2005 Installer Projects plug-in (for creating MSI setups).
$downloadUrl = "https://download.microsoft.com/download/7/6/9/7695C5DB-71E0-4DCF-98B0-58C2A0640B0F/VS2005InstallerProjects.msi" $backupUrl = "https://web.archive.org/web/20150612000000/https://download.microsoft.com/download/7/6/9/7695C5DB-71E0-4DCF-98B0-58C2A0640B0F/VS2005InstallerProjects.msi" $output = "$env:TEMP\VS2005InstallerProjects.msi" download microsoft visual studio 2005 installer projects
Write-Host "Installing MSI (silent mode)..." -ForegroundColor Cyan Start-Process msiexec.exe -Wait -ArgumentList "/i "$output " /quiet /norestart" This is a specialized request, as is nearly
if (-not (Test-Path $vs2005reg)) { Write-Host "Visual Studio 2005 not detected. Exiting." -ForegroundColor Red exit 1 } This is a specialized request