[Repack] Visual C++ Redistributable Runtimes [2024-03-13]

Discussion in 'Application Software' started by abbodi1406, Mar 9, 2018.

  1. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    278
    59
    10
    @abbodi1406
    Link is pointing to the old version (2020-07-06). :pop3:
     
  2. stusa

    stusa MDL Novice

    Nov 14, 2019
    8
    4
    0
    Anyone else getting Win32/Spursint.Q!cl from Defender when downloading the newest version? I'm assuming it's a false positive.
     
  3. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    Not getting such a thing. Using Windows Defender.
     
  4. jellybelly

    jellybelly MDL Member

    Oct 30, 2009
    159
    29
    10
    v33 of the pack seemed to be missing VCRUNTIME140_1.dll, since v33 is what I had installed and this runtime was needed for Corel PaintShop, it was resolved by installing Microsoft Visual C++ 2015-2019 Redistributable Package 14.27.29016

    So not sure if this was included in v34 or will be in the next one.
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,318
    340
    Define missing?
    the file is included in v34 and v33

    vcruntime140_1.dll is for x64 only, x86 don't have such file
     
  6. loader24

    loader24 MDL Junior Member

    May 18, 2016
    80
    11
    0
    This is one of the most important file I have in my collection. Thank you, for your continued updates.
     
  7. toto221

    toto221 MDL Member

    Dec 8, 2009
    129
    180
    10
    Me too! :-(
     
  8. amajmon

    amajmon MDL Senior Member

    Sep 21, 2012
    273
    120
    10
    Me not. Defender is off.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Stan Mars

    Stan Mars MDL Novice

    Aug 26, 2017
    5
    1
    0
    Quake Champions not starting anymore , after i installed this update , maybe something missing
     
  10. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,662
    2,217
    60
    Nope. I just installed QC with its vc redist through steam - it ran fine. I ran the latest repack first with /aiR switch, then with /aiA switch - QC ran fine again. Problem is on your end and it's not the vc++ repack.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. LocoDice

    LocoDice MDL Novice

    Aug 14, 2020
    2
    0
    0
    Hey, new around here, just passed to say thank you for the updates of this repack!

    Just a heads up, WIndows Defender (2004 w10) reports the file as wacatac! Trojan,

    probably a false positive, but wanted to let you know!

    Cheers!
     
  12. wpuser

    wpuser MDL Novice

    Sep 18, 2014
    21
    12
    0
    Me too! I use Windows Defender with latest definitions
     
  13. Stan Mars

    Stan Mars MDL Novice

    Aug 26, 2017
    5
    1
    0
    okey so i used /aiR and then /y to see all entries ,
    and only 2005 2008 2010 x64 only installed :S win10 2004 hun enterprise
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,318
    340
    Run with /aiD then post VCpp_debug.log
     
  15. Stan Mars

    Stan Mars MDL Novice

    Aug 26, 2017
    5
    1
    0
    #497 Stan Mars, Aug 20, 2020
    Last edited by a moderator: Aug 21, 2020
    Code:
    >title Visual C++ Redistributable AIO v0.34.0
    
    >if 0 EQU 1 (if 1 EQU 1 (goto :proceed )  else (goto :top ) )
    
    >for /F "tokens=6 delims=[]. " %G in ('ver') do set winbuild=%G
    
    >set winbuild=19041
    
    >for /F "skip=2 tokens=3* delims= " %G in ('"reg query "hklm\software\microsoft\Windows NT\currentversion" /v productname" ') do set "winv=%G %H"
    
    >set "winv=Windows 10 Enterprise"
    
    >if 19041 GEQ 7601 for /F "tokens=3" %G in ('"reg query "hklm\software\microsoft\Windows NT\currentversion" /v UBR" ') do if not errorlevel 1 set /a "UBR=%G"
    
    >if not errorlevel 1 set /a "UBR=0x1c2"
    
    >if defined UBR (for /F "skip=2 tokens=3,4,6,7 delims=. " %G in ('reg query "hklm\software\microsoft\Windows NT\currentversion" /v buildlabex') do set "_os=Windows 10 Enterprise x64 {%G.450.%J.%I}" )  else (for /F "skip=2 tokens=3,4,6,7 delims=. " %G in ('reg query "hklm\software\microsoft\Windows NT\currentversion" /v buildlabex') do set "_os=Windows 10 Enterprise x64 {%G.%H.%J.%I}" )
    
    >set "_os=Windows 10 Enterprise x64 {19041.450.191206-1406.vb_release}"
    
    >if 1 EQU 1 goto :proceed
    
    >cd /d "C:\Users\NX\AppData\Local\Temp\7ZipSfx.002\"
    
    >set "_val=/v UninstallString"
    
    >set "_natkey=hklm\software\microsoft\windows\currentversion\uninstall"
    
    >set "_wowkey=hklm\software\wow6432node\microsoft\windows\currentversion\uninstall"
    
    >set "_version08=507276229"
    
    >set "_version09=307297523"
    
    >set "_version10=40219473"
    
    >set "_version11=61135400"
    
    >set "_version12=406640"
    
    >set "_version14=28291150"
    
    >set "_vervstor=608280"
    
    >set "_filevstor=C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\vstoee.dll"
    
    >set "_x86file08=C:\WINDOWS\WinSxS\x86_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.6229_none_cbee8c4a4710d003\mfcm80.dll"
    
    >set "_x86file09=C:\WINDOWS\WinSxS\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.7523_none_4bf3b680bf9ea69d\mfcm90.dll"
    
    >set "_x86file10=mfcm100.dll"
    
    >set "_x86file11=mfcm110.dll"
    
    >set "_x86file12=mfcm120.dll"
    
    >set "_x86file14=mfcm140.dll"
    
    >set "_x64file08=C:\WINDOWS\WinSxS\amd64_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.6229_none_844155733294a6fd\mfcm80.dll"
    
    >set "_x64file09=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.7523_none_04467fa9ab227d97\mfcm90.dll"
    
    >set "_x64file10=mfcm100.dll"
    
    >set "_x64file11=mfcm110.dll"
    
    >set "_x64file12=mfcm120.dll"
    
    >set "_x64file14=mfcm140.dll"
    
    >if 0 EQU 1 (
    set "_x86file08=C:\WINDOWS\WinSxS\x86_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.6229_x-ww_1583ac57\mfcm80.dll"
     set "_x86file09=C:\WINDOWS\WinSxS\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.7523_x-ww_3306cf11\mfcm90.dll"
     set "_x64file08=C:\WINDOWS\WinSxS\amd64_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.6229_x-ww_478d9237\mfcm80.dll"
     set "_x64file09=C:\WINDOWS\WinSxS\amd64_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.7523_x-ww_6510b4f1\mfcm90.dll"
    )
    
    >set "_x86code08={710f4c1c-cc18-4c49-8cbf-51240c89a1a2}"
    
    >set "_x86code09={9BE518E6-ECC6-35A9-88E4-87755C07200F}"
    
    >set "_x86code10={F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}"
    
    >set "_x86code10c=1D5E3C0FEDA1E123187686FED06E995A"
    
    >set "_x86code11m={BD95A8CD-1D9F-35AD-981A-3E7925026EBB}"
    
    >set "_x86code11a={B175520C-86A2-35A7-8619-86DC379688B9}"
    
    >set "_x86code12m={8122DAB1-ED4D-3676-BB0A-CA368196543E}"
    
    >set "_x86code12a={D401961D-3A20-3AC7-943B-6139D5BD490A}"
    
    >set "_x86code14m={E9353720-9CC3-4BF6-B2E8-E84D5C51D492}"
    
    >set "_x86code14a={35F1230A-54F9-45B5-BC6B-82E063B7C6EB}"
    
    >set "_x64code08={ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}"
    
    >set "_x64code09={5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}"
    
    >set "_x64code10={1D8E6291-B0D5-35EC-8441-6616F567A0F7}"
    
    >set "_x64code10c=1926E8D15D0BCE53481466615F760A7F"
    
    >set "_x64code11m={CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}"
    
    >set "_x64code11a={37B8F9C7-03FB-3253-8781-2517C99D7C00}"
    
    >set "_x64code12m={53CF6934-A98D-3D84-9146-FC4EDF3D5641}"
    
    >set "_x64code12a={010792BA-551A-3AC0-A7EF-0FAB4156C382}"
    
    >set "_x64code14m={A6BC9439-5EF8-42C0-8525-175BF9552E14}"
    
    >set "_x64code14a={5F495411-C9CC-465A-9EFB-00E0FEC7BE75}"
    
    >if exist "!_temp!\msi.txt" del /f /q "!_temp!\msi.txt"
    
    >if exist "!_temp!\wix.txt" del /f /q "!_temp!\wix.txt"
    
    >if exist filever.vbs del /f /q filever.vbs
    
    >echo Set objFSO = CreateObject("Scripting.FileSystemObject") 1>>filever.vbs
    
    >echo Wscript.Echo objFSO.GetFileVersion(WScript.arguments(0)) 1>>filever.vbs
    
    >set "RegKey=SOFTWARE\Microsoft\Windows Script Host\Settings"
    
    >reg query "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled    | find /i "0x0"    && (set vbscu=1  & reg delete "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /f  )
    ERROR: The system was unable to find the specified registry key or value.
    
    >reg query "HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled    | find /i "0x0"    && (set vbslm=1  & reg delete "HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /f  )
    ERROR: The system was unable to find the specified registry key or value.
    
    >for /F "tokens=1,2 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\msi.dll"') do set "wiv=%i%j"
    
    >set "wiv=Bemeneti hiba: A f jlkiterjeszt‚shez (vbs) nem tartozik parancsnyelv-‚rtelmez‹"
    
    >if x64 NEQ x64 goto :x64skip
    
    >if 0 EQU 1 goto :msi32
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >for %G in ("Microsoft Visual C++ 2012 Redistributable" "Microsoft Visual C++ 2013 Preview Redistributable" "Microsoft Visual C++ 2013 RC Redistributable" "Microsoft Visual C++ 2013 Redistributable" "Microsoft Visual C++ 14 CTP Redistributable" "Microsoft Visual C++ 2015 Preview Redistributable" "Microsoft Visual C++ 2015 CTP Redistributable" "Microsoft Visual C++ 2015 RC Redistributable" "Microsoft Visual C++ 2015 Redistributable" "Microsoft Visual C++ 2017 RC Redistributable" "Microsoft Visual C++ 2017 Redistributable" "Microsoft Visual C++ 2019 Redistributable" "Microsoft Visual C++ 2015-2019 Redistributable") do (reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f %G /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2012 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 Preview Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 RC Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 14 CTP Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 Preview Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 CTP Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 RC Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2017 RC Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2017 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015-2019 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >findstr /i "HKEY_LOCAL_MACHINE" "!_temp!\wix.txt"    || goto :msi32
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >for %G in (08 09 10 11 12 14) do (set _x86install%G=1 )
    
    >(set _x86install08=1 )
    
    >(set _x86install09=1 )
    
    >(set _x86install10=1 )
    
    >(set _x86install11=1 )
    
    >(set _x86install12=1 )
    
    >(set _x86install14=1 )
    
    >for %G in (10 11 12) do (if exist "C:\WINDOWS\SysWOW64\!_x86file%G!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\SysWOW64\!_x86file%G!"') do if %i%j GEQ !_version%G! set _x86install%G=0 ) )
    
    >(if exist "C:\WINDOWS\SysWOW64\!_x86file10!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\SysWOW64\!_x86file10!"') do if %i%j GEQ !_version10! set _x86install10=0 ) )
    
    >(if exist "C:\WINDOWS\SysWOW64\!_x86file11!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\SysWOW64\!_x86file11!"') do if %i%j GEQ !_version11! set _x86install11=0 ) )
    
    >(if exist "C:\WINDOWS\SysWOW64\!_x86file12!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\SysWOW64\!_x86file12!"') do if %i%j GEQ !_version12! set _x86install12=0 ) )
    
    >for %G in (14) do (if exist "C:\WINDOWS\SysWOW64\!_x86file%G!" (for /F "tokens=2-4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\SysWOW64\!_x86file%G!"') do if %i%j%k GEQ !_version%G! set _x86install%G=0 ) )
    
    >(if exist "C:\WINDOWS\SysWOW64\!_x86file14!" (for /F "tokens=2-4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\SysWOW64\!_x86file14!"') do if %i%j%k GEQ !_version14! set _x86install14=0 ) )
    
    >if vbs) nem tartozik parancsnyelv-‚rtelmez‹ GEQ !_version14! set _x86install14=0
    
    >for %G in (08 09) do (if exist "!_x86file%G!" set _x86install%G=0 )
    
    >(if exist "!_x86file08!" set _x86install08=0 )
    
    >(if exist "!_x86file09!" set _x86install09=0 )
    
    >for %G in (08 09) do (if !_x86install%G! == 0 reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code%G! /v UninstallString    || set _x86install%G=1 )
    
    >(if !_x86install08! == 0 reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code08! /v UninstallString    || set _x86install08=1 )
    ERROR: The system was unable to find the specified registry key or value.
    
    >(if !_x86install09! == 0 reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code09! /v UninstallString    || set _x86install09=1 )
    ERROR: The system was unable to find the specified registry key or value.
    
    >if !_x86install10! == 0 (
    reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} /v UninstallString    || set _x86install10=1
     reg query HKLM\SOFTWARE\Classes\Installer\Features\1D5E3C0FEDA1E123187686FED06E995A /v "VC_RED_enu_x86_net_SETUP"    && set _x86install10=1
    )
    
    >for %G in (11 12 14) do (if !_x86install%G! == 0 (
    reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code%Gm! /v UninstallString    || set _x86install%G=1
     reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code%Ga! /v UninstallString    || set _x86install%G=1
    ) )
    
    >(if !_x86install11! == 0 (
    reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code11m! /v UninstallString    || set _x86install11=1
     reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code11a! /v UninstallString    || set _x86install11=1
    ) )
    
    >(if !_x86install12! == 0 (
    reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code12m! /v UninstallString    || set _x86install12=1
     reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code12a! /v UninstallString    || set _x86install12=1
    ) )
    
    >(if !_x86install14! == 0 (
    reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code14m! /v UninstallString    || set _x86install14=1
     reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code14a! /v UninstallString    || set _x86install14=1
    ) )
    ERROR: The system was unable to find the specified registry key or value.
    ERROR: The system was unable to find the specified registry key or value.
    
    >if 0 EQU 1 goto :msi
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2005 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {710f4c1c-cc18-4c49-8cbf-51240c89a1a2}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2008 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {9BE518E6-ECC6-35A9-88E4-87755C07200F}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2010  x86 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}  1>>"!_temp!\msi.txt"
    
    >if 1 == 1 reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2010  x86 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2012 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {B175520C-86A2-35A7-8619-86DC379688B9}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2012 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {BD95A8CD-1D9F-35AD-981A-3E7925026EBB}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {D401961D-3A20-3AC7-943B-6139D5BD490A}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {8122DAB1-ED4D-3676-BB0A-CA368196543E}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {35F1230A-54F9-45B5-BC6B-82E063B7C6EB}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {E9353720-9CC3-4BF6-B2E8-E84D5C51D492}  1>>"!_temp!\msi.txt"
    
    >for %G in ("Microsoft Visual C++ 14 x86 Additional Runtime" "Microsoft Visual C++ 14 x86 Minimum Runtime" "Microsoft Visual C++ 2015 x86 Additional Runtime" "Microsoft Visual C++ 2015 x86 Minimum Runtime" "Microsoft Visual C++ 2017 x86 Additional Runtime" "Microsoft Visual C++ 2017 x86 Minimum Runtime") do (reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f %G /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 14 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 14 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2017 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2017 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >findstr /i "HKEY_LOCAL_MACHINE" "!_temp!\msi.txt"    || goto :x64skip
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >if exist "!_temp!\msi.txt" del /f /q "!_temp!\msi.txt"
    
    >if exist "!_temp!\wix.txt" del /f /q "!_temp!\wix.txt"
    
    >if 0 EQU 1 goto :msi
    
    >if x64 EQU x64 goto :msi
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >for %G in (08 09 10 11 12 14 vstor) do (set _x64install%G=1 )
    
    >(set _x64install08=1 )
    
    >(set _x64install09=1 )
    
    >(set _x64install10=1 )
    
    >(set _x64install11=1 )
    
    >(set _x64install12=1 )
    
    >(set _x64install14=1 )
    
    >(set _x64installvstor=1 )
    
    >if exist "C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\vstoee.dll" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\vstoee.dll"') do if %i%j GEQ 608280 set _x64installvstor=0 )
    
    >for %G in (10 11 12) do (if exist "C:\WINDOWS\Sysnative\!_x64file%G!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\!_x64file%G!"') do if %i%j GEQ !_version%G! set _x64install%G=0 ) )
    
    >(if exist "C:\WINDOWS\Sysnative\!_x64file10!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\!_x64file10!"') do if %i%j GEQ !_version10! set _x64install10=0 ) )
    
    >(if exist "C:\WINDOWS\Sysnative\!_x64file11!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\!_x64file11!"') do if %i%j GEQ !_version11! set _x64install11=0 ) )
    
    >(if exist "C:\WINDOWS\Sysnative\!_x64file12!" (for /F "tokens=3,4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\!_x64file12!"') do if %i%j GEQ !_version12! set _x64install12=0 ) )
    
    >for %G in (14) do (if exist "C:\WINDOWS\Sysnative\!_x64file%G!" (for /F "tokens=2-4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\!_x64file%G!"') do if %i%j%k GEQ !_version%G! set _x64install%G=0 ) )
    
    >(if exist "C:\WINDOWS\Sysnative\!_x64file14!" (for /F "tokens=2-4 delims=." %i in ('cscript //nologo filever.vbs "C:\WINDOWS\System32\!_x64file14!"') do if %i%j%k GEQ !_version14! set _x64install14=0 ) )
    
    >if vbs) nem tartozik parancsnyelv-‚rtelmez‹ GEQ !_version14! set _x64install14=0
    
    >for %G in (08 09) do (if exist "!_x64file%G!" set _x64install%G=0 )
    
    >(if exist "!_x64file08!" set _x64install08=0 )
    
    >(if exist "!_x64file09!" set _x64install09=0 )
    
    >for %G in (08 09) do (if !_x64install%G! == 0 reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code%G! /v UninstallString    || set _x64install%G=1 )
    
    >(if !_x64install08! == 0 reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code08! /v UninstallString    || set _x64install08=1 )
    ERROR: The system was unable to find the specified registry key or value.
    
    >(if !_x64install09! == 0 reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code09! /v UninstallString    || set _x64install09=1 )
    ERROR: The system was unable to find the specified registry key or value.
    
    >if !_x64install10! == 0 (
    reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code10! /v UninstallString    || set _x64install10=1
     reg query HKLM\SOFTWARE\Classes\Installer\Features\!_x64code10c! /v "VC_RED_enu_amd64_net_SETUP"    && set _x64install10=1
    )
    
    >for %G in (11 12 14) do (if !_x64install%G! == 0 (
    reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code%Gm! /v UninstallString    || set _x64install%G=1
     reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code%Ga! /v UninstallString    || set _x64install%G=1
    ) )
    
    >(if !_x64install11! == 0 (
    reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code11m! /v UninstallString    || set _x64install11=1
     reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code11a! /v UninstallString    || set _x64install11=1
    ) )
    
    >(if !_x64install12! == 0 (
    reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code12m! /v UninstallString    || set _x64install12=1
     reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code12a! /v UninstallString    || set _x64install12=1
    ) )
    
    >(if !_x64install14! == 0 (
    reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code14m! /v UninstallString    || set _x64install14=1
     reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code14a! /v UninstallString    || set _x64install14=1
    ) )
    ERROR: The system was unable to find the specified registry key or value.
    ERROR: The system was unable to find the specified registry key or value.
    
    >if 0 EQU 1 goto :process
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2005 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code08!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2008 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code09!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2010  x64 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code10!  1>>"!_temp!\msi.txt"
    
    >if !_x64install10! == 1 reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2010  x64 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2012 x64 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code11a!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2012 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code11m!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 x64 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code12a!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2013 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code12m!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 x64 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code14a!  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v !_x64code14m!  1>>"!_temp!\msi.txt"
    
    >for %G in ("Microsoft Visual C++ 14 x64 Additional Runtime" "Microsoft Visual C++ 14 x64 Minimum Runtime" "Microsoft Visual C++ 2015 x64 Additional Runtime" "Microsoft Visual C++ 2015 x64 Minimum Runtime" "Microsoft Visual C++ 2017 x64 Additional Runtime" "Microsoft Visual C++ 2017 x64 Minimum Runtime") do (reg query hklm\software\microsoft\windows\currentversion\uninstall /f %G /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 14 x64 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 14 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 x64 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2017 x64 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2017 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >findstr /i "HKEY_LOCAL_MACHINE" "!_temp!\msi.txt"    || goto :process
    
    >set "_x86msi08=2005\x86\vcredist.msi"
    
    >set "_x64msi08=2005\x64\vcredist.msi"
    
    >set "_x86msi09=2008\x86\vc_red.msi"
    
    >set "_x64msi09=2008\x64\vc_red.msi"
    
    >set "_x86msi10=2010\x86\vc_red.msi"
    
    >set "_x64msi10=2010\x64\vc_red.msi"
    
    >set "_x86msi11m=2012\x86\vc_runtimeMinimum_x86.msi"
    
    >set "_x86msi11a=2012\x86\vc_runtimeAdditional_x86.msi"
    
    >set "_x64msi11m=2012\x64\vc_runtimeMinimum_x64.msi"
    
    >set "_x64msi11a=2012\x64\vc_runtimeAdditional_x64.msi"
    
    >set "_x86msi12m=2013\x86\vc_runtimeMinimum_x86.msi"
    
    >set "_x86msi12a=2013\x86\vc_runtimeAdditional_x86.msi"
    
    >set "_x64msi12m=2013\x64\vc_runtimeMinimum_x64.msi"
    
    >set "_x64msi12a=2013\x64\vc_runtimeAdditional_x64.msi"
    
    >set "_x86msi14m=2019\x86\vc_runtimeMinimum_x86.msi"
    
    >set "_x86msi14a=2019\x86\vc_runtimeAdditional_x86.msi"
    
    >set "_x64msi14m=2019\x64\vc_runtimeMinimum_x64.msi"
    
    >set "_x64msi14a=2019\x64\vc_runtimeAdditional_x64.msi"
    
    >set "_x86vstor=vstor\vstor40_x86.msi"
    
    >set "_x64vstor=vstor\vstor40_x64.msi"
    
    >set "_vbcrun=vbc\vbcrun.msi"
    
    >for %G in (08 09 10) do (if !_x64install%G! == 1 set /a installcount+=1 )
    
    >(if !_x64install08! == 1 set /a installcount+=1 )
    
    >(if !_x64install09! == 1 set /a installcount+=1 )
    
    >(if !_x64install10! == 1 set /a installcount+=1 )
    
    >for %G in (11 12 14) do (if !_x64install%G! == 1 set /a installcount+=2 )
    
    >(if !_x64install11! == 1 set /a installcount+=2 )
    
    >(if !_x64install12! == 1 set /a installcount+=2 )
    
    >(if !_x64install14! == 1 set /a installcount+=2 )
    
    >if x64 EQU x64 (
    for %G in (08 09 10) do (if !_x86install%G! == 1 set /a installcount+=1 )
     for %G in (11 12 14) do (if !_x86install%G! == 1 set /a installcount+=2 )
    )
    
    >(if !_x86install08! == 1 set /a installcount+=1 )
    
    >(if !_x86install09! == 1 set /a installcount+=1 )
    
    >(if !_x86install10! == 1 set /a installcount+=1 )
    
    >(if !_x86install11! == 1 set /a installcount+=2 )
    
    >(if !_x86install12! == 1 set /a installcount+=2 )
    
    >(if !_x86install14! == 1 set /a installcount+=2 )
    
    >if not defined vcpp if !_x64installvstor! == 1 set /a installcount+=1
    
    >if 19 EQU 0 goto :vbc
    
    >for %G in (08 09 10) do (if !_x64install%G! == 1 (call :install "!_x64msi%G!" ) )
    
    >(if !_x64install08! == 1 (call :install "!_x64msi08!" ) )
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >set /a count+=1
    
    >echo Installing 1 of 19: 2005\x64\vcredist.msi
    Installing 1 of 19: 2005\x64\vcredist.msi
    
    >echo.
    
    
    >echo.
    
    
    >if 1 EQU 0 2005\x64\vcredist.msi /qn /norestart
    
    >goto :eof
    
    >(if !_x64install09! == 1 (call :install "!_x64msi09!" ) )
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >set /a count+=1
    
    >echo Installing 2 of 19: 2008\x64\vc_red.msi
    Installing 2 of 19: 2008\x64\vc_red.msi
    
    >echo.
    
    
    >echo.
    
    
    >if 1 EQU 0 2008\x64\vc_red.msi /qn /norestart
    
    >goto :eof
    
    >(if !_x64install10! == 1 (call :install "!_x64msi10!" ) )
    
    >call :title
    
    >if 1 EQU 1 goto :eof
    
    >set /a count+=1
    
    >echo Installing 3 of 19: 2010\x64\vc_red.msi
    Installing 3 of 19: 2010\x64\vc_red.msi
    
    >echo.
    
    
    >echo.
    
    
    >if 1 EQU 0 2010\x64\vc_red.msi /qn /norestart
    
    >goto :eof
    hiba: was unexpected at this time.
    
    >if 0 equ 1 if Bemeneti hiba: A f jlkiterjeszt‚shez (vbs) nem tartozik parancsnyelv-‚rtelmez‹ lss 31 goto :wow64
    
     
  16. Stan Mars

    Stan Mars MDL Novice

    Aug 26, 2017
    5
    1
    0
    forget it , its kinda my fault used advanced scan on registry when uninstalled , now only the 2010 x64 gets installed
     
  17. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,318
    340
    @Stan Mars

    your system cannot execute filever.vbs script correctly