47 lines
1.6 KiB
Batchfile
47 lines
1.6 KiB
Batchfile
@echo off
|
|
:: Permalink: https://chse.dev/redists
|
|
:: Source Code: https://git.chse.dev/chase/redist-installer
|
|
|
|
:: Run as Admin
|
|
set "params=%*"
|
|
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
|
|
|
|
title Redist Installer
|
|
|
|
:: Install Redists directly from the redists folder
|
|
cd redists
|
|
|
|
echo Installing 1/16...
|
|
vcredist2015_2017_2019_x86.exe /install /quiet /norestart
|
|
echo Installing 2/16...
|
|
vcredist2015_2017_2019_x64.exe /install /quiet /norestart
|
|
echo Installing 3/16...
|
|
2013_x86.exe /install /quiet /norestart
|
|
echo Installing 4/16...
|
|
2013_x64.exe /install /quiet /norestart
|
|
echo Installing 5/16...
|
|
2012_x86.exe /install /quiet /norestart
|
|
echo Installing 6/16...
|
|
2012_x64.exe /install /quiet /norestart
|
|
echo Installing 7/16...
|
|
2010_x86.exe /install /quiet /norestart
|
|
echo Installing 8/16...
|
|
2010_x64.exe /install /quiet /norestart
|
|
echo Installing 9/16...
|
|
2008_x86.exe /install /quiet /norestart
|
|
echo Installing 10/16...
|
|
2008_x64.exe /install /quiet /norestart
|
|
echo Installing 11/16...
|
|
2005_x86.exe /Q
|
|
echo Installing 12/16...
|
|
2005_x64.exe /Q
|
|
echo Installing 13/16...
|
|
start /wait DirectX.exe /Q
|
|
echo Installing 14/16...
|
|
start /wait DirectXA.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
|
|
echo Installing 15/16...
|
|
start /wait dotNET.exe /Q
|
|
echo Installing 16/16...
|
|
start /wait msxmlenu.msi /qn /L* "%temp%\XML Parser 4.0.log" /norestart ALLUSERS=2 >nul 2>&1
|
|
|
|
exit |