@echo off
chcp 65001 >nul
title GothamDev Studio — Visual C++ Runtimes All-in-One
CD /d %~dp0

color 0B
echo.
echo  ============================================================
echo   GothamDev Studio — Pack Visual C++ All-in-One
echo   Edition LeGeekShop — Juin 2026
echo  ============================================================
echo.
echo   Studio digital : https://gothamdev.fr
echo   Boutique       : https://www.legeekshop.com
echo   Support        : contact@gothamdev.fr
echo.
echo   Ce pack regroupe les runtimes Microsoft Visual C++ requis
echo   pour la plupart des jeux PC et logiciels (2005 a 2026).
echo.
echo   Source technique : TechPowerUp / Microsoft Redistributables
echo  ============================================================
echo.
echo Installation des runtimes en cours...
echo.

set IS_X64=0
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set IS_X64=1
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" set IS_X64=1
if "%PROCESSOR_ARCHITECTURE%"=="ARM64" 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 v14 (2015-2026) ...
start /wait vcredist_v14.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 v14 (2015-2026) ...
start /wait vcredist_v14.x86.exe /passive /norestart
start /wait vcredist_v14.x64.exe /passive /norestart

goto END

:END

echo.
echo  ============================================================
echo   Installation terminee avec succes.
echo.
echo   Merci d'avoir choisi GothamDev / LeGeekShop.
echo   Besoin d'aide ? contact@gothamdev.fr — https://gothamdev.fr
echo  ============================================================
echo.
pause
exit
