• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Installing Visual C Runtimes All In One May 2024

OB1

New Member
Joined
Jun 18, 2024
Messages
1 (0.00/day)
Need to update Visual C++ for a game software but unable to run the install_all batch file as admin. Any recommendations on what a noob should be doing?
 

Attachments

  • Install.PNG
    Install.PNG
    3.1 MB · Views: 113
one at a time from lowest year to recent. will take a minute or 2
 
You can just Open the installation bat file which will work but you will get a UAC prompt for each package. A bit cumbersome but all the packages will install properly.
 
Here I updated the batch file with some error correction. Just copy and paste this over what is in the current bat file. Welcome to TPU!

(Heads up - @W1zzard )

Code:
@echo off
setlocal
CD /d %~dp0

echo.
echo Microsoft Visual C++ All-In-One Runtimes by W1zzard @ TechPowerUp
echo https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/
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
    )
)

:: Function to install a package and check for errors
echo Installing 2005 x86...
vcredist2005_x86.exe /q
if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2005_x86.exe

echo Installing 2008 x86...
vcredist2008_x86.exe /qb
if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2008_x86.exe

echo Installing 2010 x86...
vcredist2010_x86.exe /passive /norestart
if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2010_x86.exe

echo Installing 2012 x86...
vcredist2012_x86.exe /passive /norestart
if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2012_x86.exe

echo Installing 2013 x86...
vcredist2013_x86.exe /passive /norestart
if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2013_x86.exe

echo Installing 2015-2022 x86...
vcredist2015_2017_2019_2022_x86.exe /passive /norestart
if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2015_2017_2019_2022_x86.exe

if "%IS_X64%"=="1" (
    echo Installing 2005 x64...
    vcredist2005_x64.exe /q
    if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2005_x64.exe

    echo Installing 2008 x64...
    vcredist2008_x64.exe /qb
    if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2008_x64.exe

    echo Installing 2010 x64...
    vcredist2010_x64.exe /passive /norestart
    if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2010_x64.exe

    echo Installing 2012 x64...
    vcredist2012_x64.exe /passive /norestart
    if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2012_x64.exe

    echo Installing 2013 x64...
    vcredist2013_x64.exe /passive /norestart
    if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2013_x64.exe

    echo Installing 2015-2022 x64...
    vcredist2015_2017_2019_2022_x64.exe /passive /norestart
    if %ERRORLEVEL% NEQ 0 echo Error installing vcredist2015_2017_2019_2022_x64.exe
)

echo.
echo Installation completed successfully

pause
exit /b 0
 
Back
Top