-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bat
67 lines (46 loc) · 1.5 KB
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
CD /d %~dp0
echo.
echo Microsoft Visual C++ All-In-One Runtimes @ dincartie
echo https://github.com/dincartie/visual-c-redistributable-runtime-package/
echo.
echo Installing runtime packages...
set IS_X64=0 && if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (set IS_X64=1) else (if "%PROCESSOR_ARCHITEW6432%"=="AMD64" (set IS_X64=1))
if "%IS_X64%" == "1" goto X64
echo 2005...
start /wait vcredist2005_x86.exe /q
echo 2008...
start /wait vcredist2008_x86.exe /qb
echo 2010...
start /wait vcredist2010_x86.exe /passive /norestart
echo 2012...
start /wait vcredist2012_x86.exe /passive /norestart
echo 2013...
start /wait vcredist2013_x86.exe /passive /norestart
echo 2015 - 2022...
start /wait vcredist2015_2017_2019_2022_x86.exe /passive /norestart
goto END
:X64
echo 2005...
start /wait vcredist2005_x86.exe /q
start /wait vcredist2005_x64.exe /q
echo 2008...
start /wait vcredist2008_x86.exe /qb
start /wait vcredist2008_x64.exe /qb
echo 2010...
start /wait vcredist2010_x86.exe /passive /norestart
start /wait vcredist2010_x64.exe /passive /norestart
echo 2012...
start /wait vcredist2012_x86.exe /passive /norestart
start /wait vcredist2012_x64.exe /passive /norestart
echo 2013...
start /wait vcredist2013_x86.exe /passive /norestart
start /wait vcredist2013_x64.exe /passive /norestart
echo 2015 - 2022...
start /wait vcredist2015_2017_2019_2022_x86.exe /passive /norestart
start /wait vcredist2015_2017_2019_2022_x64.exe /passive /norestart
goto END
:END
echo.
echo Installation completed successfully
exit