# Microsoft Visual C++ automatic installation script # author: Zahradník (radek.zahradnik@msn.com) # Date: 2016-11-07 # Version: 1.0 # Purpose: This script performs a silent installation of all Visual C++ redistributable packages. ##################################################### ##################################################### # Get list of exe files in the current folder ##################################################### $files = Get-ChildItem -Path "$PSScriptRoot\" -Filter *.exe foreach($item in $files) { Write-Output "Installing: $item" Start-Process -FilePath $item.FullName -ArgumentList '/q' -Wait Write-Output "Installing: $item has been completed." } Write-Output "All packages has been installed."