# Microsoft Visual C++ automatic installation script # author: Zahradník (radek.zahradnik@msn.com) # Date: 2017-03-26 # Version: 1.0 # Purpose: This script performs a silent installation of all Visual C++ redistributable packages from chocolate repository. ##################################################### ##################################################### # Invoke the instalations of the latest version of Chocolate ##################################################### # Use external BAT file, also hosted on my site: # http://radekzahradnik.cz/wp-content/uploads/2017/03/Chocolatey_install.bat ##################################################### # Invoke the instalations of the latest version of packages ##################################################### try { choco install vcredist2005 -y choco install vcredist2008 -y choco install vcredist2010 -y choco install vcredist2012 -y choco install vcredist2013 -y choco install vcredist140 -y } catch { Write-Output "Probably you don't have the Chocolatey service installed. Go to:" Write-Output "Go to: http://radekzahradnik.cz/wp-content/uploads/2017/03/Chocolatey_install.bat and run it like an administrator for installation." Write-Output "and run it like an administrator for installation." throw $_ } Write-Output "All packages has been installed."