Skip to content

Instantly share code, notes, and snippets.

@IlyaFinkelshteyn
Last active March 2, 2021 10:31
Show Gist options
  • Save IlyaFinkelshteyn/68d62223f51652289ab57af4cbcdcdc7 to your computer and use it in GitHub Desktop.
Save IlyaFinkelshteyn/68d62223f51652289ab57af4cbcdcdc7 to your computer and use it in GitHub Desktop.
Install Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package
if ((Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.DisplayName -eq "Microsoft Visual Studio 2010 Shell (Isolated) - ENU"}) -ne $null)
{
Write-Host "Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package already installed."
}
else
{
Measure-command {
Write-Host "Downloading Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package..."
$exePath = "$($env:USERPROFILE)\VSIsoShell.exe"
(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/1/9/3/1939AD78-F8E8-4336-83F3-E2470F422C62/VSIsoShell.exe', $exePath)
Write-Host "Installing Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package..."
cmd /c start /wait "$exePath" /q /norestart
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment