$vs2005reg = "HKLM:\SOFTWARE\Microsoft\VisualStudio\8.0" $installerProjectsKey = "HKLM:\SOFTWARE\Microsoft\VisualStudio\8.0\InstallerProjects"
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). download microsoft visual studio 2005 installer projects
if (Test-Path $installerProjectsKey) { Write-Host "Visual Studio Installer Projects already present." -ForegroundColor Green exit 0 } $vs2005reg = "HKLM:\SOFTWARE\Microsoft\VisualStudio\8