Skip to content

Instantly share code, notes, and snippets.

@rakisaionji
Created July 2, 2018 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakisaionji/67e60173370a560cdb896dc8bc13ad5d to your computer and use it in GitHub Desktop.
Save rakisaionji/67e60173370a560cdb896dc8bc13ad5d to your computer and use it in GitHub Desktop.
Download Microsoft Visual C++ 2015 Redistributable Pack
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$workingdir = (Get-Location).Path
if($PSVersiontable.PSVersion.Major -lt 3)
{
Write-Warning "Please download Microsoft Visual C++ 2015 Redistributable Pack and place it in the same folder as this script."
Write-Output "Download from: https://www.microsoft.com/en-us/download/details.aspx?id=52685"
Write-Output ("Save to this directory: $workingdir" -f (Get-Location).Path)
# iexplore.exe https://download.microsoft.com/download/0/6/4/064F84EA-D1DB-4EAA-9A5C-CC2F0FF6A638/vc_redist.x64.exe
Read-Host "Press Enter when you're done!"
}
else
{
Invoke-WebRequest -Uri https://download.microsoft.com/download/0/6/4/064F84EA-D1DB-4EAA-9A5C-CC2F0FF6A638/vc_redist.x64.exe -OutFile vc_redist_x64.exe
}
.\vc_redist_x64.exe /install /passive /norestart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment