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

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

  1. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    321
    73
    10
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    Fake msi version (without zero), files are 10.0.60910.0 :animatedwink:
     
  3. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    321
    73
    10
    @abbodi1406
    Little question. Should "Visual Studio Tools for Office Runtime" x86 not also be installed on a Windows x64 system?
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    No
    vstor x64 contain files/components for both x64/x86
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    Problem

    do you get the same with v74?
     
  6. DuskGolem

    DuskGolem MDL Junior Member

    Jan 9, 2019
    97
    30
    0
    Nope. It installed without any problems.
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    Can you run v75 though command line: VisualCppRedist_AIO_x86_x64.exe /aiD
    and share VCpp_debug.log
     
  8. DuskGolem

    DuskGolem MDL Junior Member

    Jan 9, 2019
    97
    30
    0
    #771 DuskGolem, Aug 11, 2023
    Last edited: Aug 11, 2023
    Roger

    Edit: No log is generated. Tried 3 times.
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    Did you change your User Profile location or Desktop path?

    you can extract Installer.cmd from exe file using 7-zip or Winrar, and run in command prompt:
    Code:
    reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop
    Installer.cmd /debug
     
  10. DuskGolem

    DuskGolem MDL Junior Member

    Jan 9, 2019
    97
    30
    0
    My Bad, thought the log is to be generated in the .exe directory.

    Here:
    Code:
    >if defined uc14 goto :ucrtonly
    
    >title Visual C++ Redistributable AIO v0.75.0
    
    >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 19045 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=0xcfc"
    
    >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.3324.%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.3324.191206-1406.vb_release}"
    
    >if 1 EQU 1 goto :proceed
    
    >pushd "!_work!"
    
    >set "mvc=Microsoft Visual C++"
    
    >set "_val=/v UninstallString"
    
    >set "_natkey=hklm\software\microsoft\windows\currentversion\uninstall"
    
    >set "_wowkey=hklm\software\wow6432node\microsoft\windows\currentversion\uninstall"
    
    >set "_vstor=609100"
    
    >set "_ver08=507276229"
    
    >set "_ver09=307297523"
    
    >set "_ver10=40219473"
    
    >set "_ver11=61135400"
    
    >set "_ver12=406640"
    
    >set "_ver14=38329190"
    
    >set "_filevstor=C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\vstoee.dll"
    
    >set "_x86fusn08=x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_bcc8f3fc9457ed28\8.0\8.0.50727.6229\msvcp80.dll"
    
    >set "_x86fusn09=x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_none_ea33c8f0b247cd77\9.0\9.0.30729.7523\msvcp90.dll"
    
    >set "_x86file08=x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_d089f796442de10e\msvcp80.dll"
    
    >set "_x86file09=x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.7523_none_508f21ccbcbbb7a8\msvcp90.dll"
    
    >set "_x86file10=msvcp100.dll"
    
    >set "_x86file11=msvcp110.dll"
    
    >set "_x86file12=msvcp120.dll"
    
    >set "_x86file14=msvcp140.dll"
    
    >set "_x64fusn08=amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_751bbd257fdbc422\8.0\8.0.50727.6229\msvcp80.dll"
    
    >set "_x64fusn09=amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_none_a28692199dcba471\9.0\9.0.30729.7523\msvcp90.dll"
    
    >set "_x64file08=amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_88dcc0bf2fb1b808\msvcp80.dll"
    
    >set "_x64file09=amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.7523_none_08e1eaf5a83f8ea2\msvcp90.dll"
    
    >set "_x64file10=msvcp100.dll"
    
    >set "_x64file11=msvcp110.dll"
    
    >set "_x64file12=msvcp120.dll"
    
    >set "_x64file14=msvcp140.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={2F7F071D-83D0-4994-8237-7B0579452FD4}"
    
    >set "_x86code14a={5F0295FE-3DAA-4C04-94A6-2AFC6D739D34}"
    
    >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={D028B71C-9372-40C9-B535-5841F78448CC}"
    
    >set "_x64code14a={98B96874-2649-4CC3-B599-1F2EEC28A500}"
    
    >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.
    
    >if x64 == x86 goto :WiXNat
    
    >if 1 EQU 0 call :title
    
    >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++ 2022 Redistributable" "Microsoft Visual C++ 2015-2019 Redistributable" "Microsoft Visual C++ 2015-2022 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++ 2022 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" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2015-2022 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\wix.txt" )
    
    >findstr /i "HKEY_LOCAL_MACHINE" "!_temp!\wix.txt"    || goto :MsiWow
    
    >if 1 EQU 0 call :title
    
    >if not defined updt 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
    
    >if defined updt for %G in (08 09 10 11 12 14) do set _x86install%G=2
    
    >if exist "C:\Windows\SysWOW64\!_x86file10!" if defined updt set _x86install10=1
    
    >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 GTR 40219 set _x86install10=0 
     if %i EQU 40219 if %j GEQ 473 set _x86install10=0
    )
    
    >(
    if 40219 GTR 40219 set _x86install10=0 
     if 40219 EQU 40219 if 473 GEQ 473 set _x86install10=0
    )
    
    >if exist "C:\Windows\SysWOW64\!_x86file11!" if defined updt set _x86install11=1
    
    >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 GTR 61135 set _x86install11=0 
     if %i EQU 61135 if %j GEQ 400 set _x86install11=0
    )
    
    >(
    if 61135 GTR 61135 set _x86install11=0 
     if 61135 EQU 61135 if 400 GEQ 400 set _x86install11=0
    )
    
    >if exist "C:\Windows\SysWOW64\!_x86file12!" if defined updt set _x86install12=1
    
    >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 GTR 40664 set _x86install12=0 
     if %i EQU 40664 if %j GEQ 0 set _x86install12=0
    )
    
    >(
    if 40664 GTR 40664 set _x86install12=0 
     if 40664 EQU 40664 if 0 GEQ 0 set _x86install12=0
    )
    
    >if exist "C:\Windows\SysWOW64\!_x86file14!" if defined updt set _x86install14=1
    
    >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 GTR 38 set _x86install14=0 
     if %i EQU 38 if %j GTR 32919 set _x86install14=0 
     if %i EQU 38 if %j EQU 32919 if %k GEQ 0 set _x86install14=0
    )
    
    >(
    if 38 GTR 38 set _x86install14=0 
     if 38 EQU 38 if 32919 GTR 32919 set _x86install14=0 
     if 38 EQU 38 if 32919 EQU 32919 if 0 GEQ 0 set _x86install14=0
    )
    
    >for %G in (08 09) do (
    if exist "C:\Windows\WinSxS\!_x86file%G!" set _x86install%G=0 
     if exist "C:\Windows\WinSxS\Fusion\!_x86fusn%G!" set _x86install%G=0
    )
    
    >(
    if exist "C:\Windows\WinSxS\!_x86file08!" set _x86install08=0 
     if exist "C:\Windows\WinSxS\Fusion\!_x86fusn08!" set _x86install08=0
    )
    
    >(
    if exist "C:\Windows\WinSxS\!_x86file09!" set _x86install09=0 
     if exist "C:\Windows\WinSxS\Fusion\!_x86fusn09!" set _x86install09=0
    )
    
    >for %G in (08 09) do if !_x86install%G! EQU 0 (reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code%G! /v UninstallString    || set _x86install%G=1 )
    
    >if !_x86install08! EQU 0 (reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code08! /v UninstallString    || set _x86install08=1 )
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{710f4c1c-cc18-4c49-8cbf-51240c89a1a2}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{710f4c1c-cc18-4c49-8cbf-51240c89a1a2}
    
    
    >if !_x86install09! EQU 0 (reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\!_x86code09! /v UninstallString    || set _x86install09=1 )
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{9BE518E6-ECC6-35A9-88E4-87755C07200F}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{9BE518E6-ECC6-35A9-88E4-87755C07200F}
    
    
    >if !_x86install10! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
    
    
    
    ERROR: The system was unable to find the specified registry key or value.
    
    >for %G in (11 12 14) do if !_x86install%G! EQU 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! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{BD95A8CD-1D9F-35AD-981A-3E7925026EBB}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{BD95A8CD-1D9F-35AD-981A-3E7925026EBB}
    
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{B175520C-86A2-35A7-8619-86DC379688B9}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{B175520C-86A2-35A7-8619-86DC379688B9}
    
    
    >if !_x86install12! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{8122DAB1-ED4D-3676-BB0A-CA368196543E}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{8122DAB1-ED4D-3676-BB0A-CA368196543E}
    
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{D401961D-3A20-3AC7-943B-6139D5BD490A}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{D401961D-3A20-3AC7-943B-6139D5BD490A}
    
    
    >if !_x86install14! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{2F7F071D-83D0-4994-8237-7B0579452FD4}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{2F7F071D-83D0-4994-8237-7B0579452FD4}
    
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{5F0295FE-3DAA-4C04-94A6-2AFC6D739D34}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{5F0295FE-3DAA-4C04-94A6-2AFC6D739D34}
    
    
    >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"
    
    >if 0 EQU 1 reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2005 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  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"
    
    >if 0 EQU 1 reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2008 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  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 0 EQU 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++ 2022 x86 Additional Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {5F0295FE-3DAA-4C04-94A6-2AFC6D739D34}  1>>"!_temp!\msi.txt"
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2022 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"   | findstr /i /v {2F7F071D-83D0-4994-8237-7B0579452FD4}  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" "Microsoft Visual C++ 2019 x86 Additional Runtime" "Microsoft Visual C++ 2019 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" )
    
    >(reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 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++ 2019 x86 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >findstr /i "HKEY_LOCAL_MACHINE" "!_temp!\msi.txt"    || goto :WiXNat
    
    >if 1 EQU 0 call :title
    
    >if exist "!_temp!\msi.txt" del /f /q "!_temp!\msi.txt"
    
    >if exist "!_temp!\wix.txt" del /f /q "!_temp!\wix.txt"
    
    >if not x64 == x86 goto :MsiNat
    
    >if 1 EQU 0 call :title
    
    >if x64 == arm64 (
    for %G in (08 09 10 11 12 14 vstor) do set _x64install%G=0 
     goto :process
    )
    
    >if not defined updt 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 defined updt for %G in (08 09 10 11 12 14 vstor) do set _x64install%G=2
    
    >if exist "C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\vstoee.dll" if defined updt 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 609100 set _x64installvstor=0
    
    >if 60906115 GEQ 609100 set _x64installvstor=0
    
    >if exist "C:\Windows\Sysnative\!_x64file10!" if defined updt set _x64install10=1
    
    >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 GTR 40219 set _x64install10=0 
     if %i EQU 40219 if %j GEQ 473 set _x64install10=0
    )
    
    >(
    if 40219 GTR 40219 set _x64install10=0 
     if 40219 EQU 40219 if 473 GEQ 473 set _x64install10=0
    )
    
    >if exist "C:\Windows\Sysnative\!_x64file11!" if defined updt set _x64install11=1
    
    >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 GTR 61135 set _x64install11=0 
     if %i EQU 61135 if %j GEQ 400 set _x64install11=0
    )
    
    >(
    if 61135 GTR 61135 set _x64install11=0 
     if 61135 EQU 61135 if 400 GEQ 400 set _x64install11=0
    )
    
    >if exist "C:\Windows\Sysnative\!_x64file12!" if defined updt set _x64install12=1
    
    >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 GTR 40664 set _x64install12=0 
     if %i EQU 40664 if %j GEQ 0 set _x64install12=0
    )
    
    >(
    if 40664 GTR 40664 set _x64install12=0 
     if 40664 EQU 40664 if 0 GEQ 0 set _x64install12=0
    )
    
    >if exist "C:\Windows\Sysnative\!_x64file14!" if defined updt set _x64install14=1
    
    >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 GTR 38 set _x64install14=0 
     if %i EQU 38 if %j GTR 32919 set _x64install14=0 
     if %i EQU 38 if %j EQU 32919 if %k GEQ 0 set _x64install14=0
    )
    
    >(
    if 38 GTR 38 set _x64install14=0 
     if 38 EQU 38 if 32919 GTR 32919 set _x64install14=0 
     if 38 EQU 38 if 32919 EQU 32919 if 0 GEQ 0 set _x64install14=0
    )
    
    >for %G in (08 09) do (
    if exist "C:\Windows\WinSxS\!_x64file%G!" set _x64install%G=0 
     if exist "C:\Windows\WinSxS\Fusion\!_x64fusn%G!" set _x64install%G=0
    )
    
    >(
    if exist "C:\Windows\WinSxS\!_x64file08!" set _x64install08=0 
     if exist "C:\Windows\WinSxS\Fusion\!_x64fusn08!" set _x64install08=0
    )
    
    >(
    if exist "C:\Windows\WinSxS\!_x64file09!" set _x64install09=0 
     if exist "C:\Windows\WinSxS\Fusion\!_x64fusn09!" set _x64install09=0
    )
    
    >for %G in (08 09) do if !_x64install%G! EQU 0 (reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code%G! /v UninstallString    || set _x64install%G=1 )
    
    >if !_x64install08! EQU 0 (reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code08! /v UninstallString    || set _x64install08=1 )
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}
    
    
    >if !_x64install09! EQU 0 (reg query hklm\software\microsoft\windows\currentversion\uninstall\!_x64code09! /v UninstallString    || set _x64install09=1 )
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}
    
    
    >if !_x64install10! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}
    
    
    
    ERROR: The system was unable to find the specified registry key or value.
    
    >for %G in (11 12 14) do if !_x64install%G! EQU 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! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}
    
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{37B8F9C7-03FB-3253-8781-2517C99D7C00}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{37B8F9C7-03FB-3253-8781-2517C99D7C00}
    
    
    >if !_x64install12! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{53CF6934-A98D-3D84-9146-FC4EDF3D5641}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{53CF6934-A98D-3D84-9146-FC4EDF3D5641}
    
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{010792BA-551A-3AC0-A7EF-0FAB4156C382}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{010792BA-551A-3AC0-A7EF-0FAB4156C382}
    
    
    >if !_x64install14! EQU 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
    )
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{D028B71C-9372-40C9-B535-5841F78448CC}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{D028B71C-9372-40C9-B535-5841F78448CC}
    
    
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\{98B96874-2649-4CC3-B599-1F2EEC28A500}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{98B96874-2649-4CC3-B599-1F2EEC28A500}
    
    
    >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"
    
    >if !_x64install08! EQU 1 reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2005 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  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"
    
    >if !_x64install09! EQU 1 reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2008 Redistributable" /s    | find /i "HKEY_LOCAL_MACHINE"  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! EQU 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++ 2022 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++ 2022 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" "Microsoft Visual C++ 2019 x64 Additional Runtime" "Microsoft Visual C++ 2019 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" )
    
    >(reg query hklm\software\microsoft\windows\currentversion\uninstall /f "Microsoft Visual C++ 2019 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++ 2019 x64 Minimum Runtime" /s    | find /i "HKEY_LOCAL_MACHINE"  1>>"!_temp!\msi.txt" )
    
    >findstr /i "HKEY_LOCAL_MACHINE" "!_temp!\msi.txt"    || goto :process
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Revit 2018
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Revit Content Libraries 2018
    
    >echo Uninstalling non-compliant Visual C++ MSI packages {x64}
    Uninstalling non-compliant Visual C++ MSI packages {x64}
    
    >echo (please wait as this process may take a few moments)
    (please wait as this process may take a few moments)
    
    >set invalid=1
    
    >for /F "usebackq tokens=7 delims=\" %G in ("!_temp!\msi.txt") do (if 1 EQU 0 (
    start /wait MsiExec.exe /X%G /quiet /norestart 
     reg delete hklm\software\microsoft\windows\currentversion\uninstall\%G /f 
    ) )
    
    >(if 1 EQU 0 (
    start /wait MsiExec.exe /XRevit 2018 /quiet /norestart 
     reg delete hklm\software\microsoft\windows\currentversion\uninstall\Revit 2018 /f 
    ) )
    
    >(if 1 EQU 0 (
    start /wait MsiExec.exe /XRevit Content Libraries 2018 /quiet /norestart 
     reg delete hklm\software\microsoft\windows\currentversion\uninstall\Revit Content Libraries 2018 /f 
    ) )
    
    >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=2022\x86\vc_runtimeMinimum_x86.msi"
    
    >set "_x86msi14a=2022\x86\vc_runtimeAdditional_x86.msi"
    
    >set "_x64msi14m=2022\x64\vc_runtimeMinimum_x64.msi"
    
    >set "_x64msi14a=2022\x64\vc_runtimeAdditional_x64.msi"
    
    >set "_x86vstor=vstor\vstor40_x86.msi"
    
    >set "_x64vstor=vstor\vstor40_x64.msi"
    
    >set "_vbcrun=vbc\vbcrun.msi"
    
    >set "_vcrun=vbc\vcrun.msi"
    
    >for %G in (08 09 10) do if !_x64install%G! EQU 1 set /a installcount+=1
    
    >if !_x64install08! EQU 1 set /a installcount+=1
    
    >if !_x64install09! EQU 1 set /a installcount+=1
    
    >if !_x64install10! EQU 1 set /a installcount+=1
    
    >for %G in (11 12 14) do if !_x64install%G! EQU 1 set /a installcount+=2
    
    >if !_x64install11! EQU 1 set /a installcount+=2
    
    >if !_x64install12! EQU 1 set /a installcount+=2
    
    >if !_x64install14! EQU 1 set /a installcount+=2
    
    >if not x64 == x86 (
    for %G in (08 09 10) do if !_x86install%G! EQU 1 set /a installcount+=1 
     for %G in (11 12 14) do if !_x86install%G! EQU 1 set /a installcount+=2
    )
    
    >if !_x86install08! EQU 1 set /a installcount+=1
    
    >if !_x86install09! EQU 1 set /a installcount+=1
    
    >if !_x86install10! EQU 1 set /a installcount+=1
    
    >if !_x86install11! EQU 1 set /a installcount+=2
    
    >if !_x86install12! EQU 1 set /a installcount+=2
    
    >if !_x86install14! EQU 1 set /a installcount+=2
    
    >if not defined vcpp if !_x64installvstor! EQU 1 set /a installcount+=1
    
    >if 0 EQU 0 goto :vbc
    
    >if x64 == x86 (
    set "dest=C:\Windows\system32" 
     set "_qkey=hklm\software\microsoft\windows\currentversion\uninstall"
    )  else (
    set "dest=C:\Windows\syswow64" 
     set "_qkey=hklm\software\wow6432node\microsoft\windows\currentversion\uninstall"
    )
    
    >if defined vcpp if exist "C:\Windows\syswow64\msvcrt10.dll" (
    if 0 EQU 0 if 1 EQU 0 (call :title  & echo All installed Visual C++ Redistributables are compliant. ) 
     goto :close
    )
    
    >if defined updt (
    if 0 EQU 0 if 1 EQU 0 (call :title  & echo Installed Visual C++ Redistributables are compliant. ) 
     goto :close
    )
    
    >reg query hklm\software\wow6432node\microsoft\windows\currentversion\uninstall\{C5E3A69D-D391-45A6-A8FB-00B01E2B010D} /v UninstallString    && goto :ucrtbase
    
    HKEY_LOCAL_MACHINE\software\wow6432node\microsoft\windows\currentversion\uninstall\{C5E3A69D-D391-45A6-A8FB-00B01E2B010D}
        UninstallString    REG_EXPAND_SZ    MsiExec.exe /X{C5E3A69D-D391-45A6-A8FB-00B01E2B010D}
    
    
    >if 0 EQU 0 if 1 EQU 0 (call :title  & echo All installed Visual C++ Redistributables are compliant. )
    
    >if defined ucrt goto :close
    
    >if exist "C:\Windows\Sysnative\ucrtbase.dll" goto :close
    
    >for %G in ("!_temp!\*Redistributable*.*" "!_temp!\*vcredist*.*" "!_temp!\*vstor*.*" "!_temp!\msi*.log" "!_temp!\del*.tmp" msi.txt wix.txt) do (if exist "!_temp!\%~nxG" del /f /q "!_temp!\%~nxG" )
    
    >(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
    
    >if defined vbscu reg add "HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /t REG_DWORD /d 0 /f 
    
    >if defined vbslm reg add "HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings" /v Enabled /t REG_DWORD /d 0 /f 
    
    >if 1 EQU 1 goto :eof
    
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    Did you recently installed or uninstalled Autodesk Revit 2018?
    the script is mess-detecting it as VC++ runtime

    run this in command prompt and post result
    Code:
    reg query "HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Revit 2018"
    reg query "HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Revit Content Libraries 2018"
    p.s. can you also manually check this file properties > details > File Version?
    the returned version in the log is weird
    Code:
    "C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\vstoee.dll"
     
  12. DuskGolem

    DuskGolem MDL Junior Member

    Jan 9, 2019
    97
    30
    0
    Yup, Installed AutoDesk InfracStructure Design Suite 2018 (AutoCad, Civil 3D, Revit, etc)

    For 1st Command:
    Code:
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Revit 2018
        DisplayName    REG_SZ    Autodesk Revit 2018
        AdskPackageName    REG_SZ    Autodesk Infrastructure Design Suite Ultimate 2018
        AdskPackageCode    REG_SZ    {ED7E43A0-5A97-4111-8FA6-BDCD75D15F9D}
        AdskProductCode    REG_SZ    {7346B4A0-1800-0510-0000-705C0D862004}
        AdskProductDependencies    REG_SZ    Internet Explorer 7,Microsoft Visual C++ 2008 SP1 Redistributable (x64),Microsoft Visual C++ 2008 SP1 Redistributable (x64) 9.0.30729.6161,Microsoft Visual C++ 2005 Redistributable (x86),Microsoft Visual C++ 2005 Redistributable (x64),Microsoft Visual C++ 2008 SP1 Redistributable (x86),Microsoft Visual C++ 2008 SP1 Redistributable (x86) 9.0.30729.6161,Microsoft Visual C++ 2010 SP1 Redistributable (x86),Microsoft Visual C++ 2010 SP1 Redistributable (x64),Microsoft Visual C++ 2012 Redistributable (x86),Microsoft Visual C++ 2012 Redistributable (x64),Microsoft Visual C++ 2015 Redistributable (x86),Microsoft Visual C++ 2015 Redistributable (x64),{04B34E21-5BEE-3D2B-8D3D-E3E80D253F64},{B42E259C-E4D4-37F1-A1B2-EB9C4FC5A04D},{14866AAD-1F23-39AC-A62B-7091ED1ADE64},{4B90093A-5D9C-3956-8ABB-95848BE6EFAD},{C3A57BB3-9AA6-3F6F-9395-6C062BDD5FC4},{6DA2B636-698A-3294-BF4A-B5E11B238CDD},{F6F09DD8-F39B-3A16-ADB9-C9E6B56903F9},{8CCEA24C-51AE-3B71-9092-7D0C44DDA2DF},Microsoft Visual C++ 2005 SP1 Redistributable ATL Security Update (x86),Microsoft Visual C++ 2005 SP1 Redistributable ATL Security Update (x64),.NET Framework Runtime 4.6,.NET Framework Runtime 4.6.2,.NET Framework Runtime 4.6 Language Pack,{510A08AF-1649-4844-94E5-EAC43A023685},{52EBC484-44A1-4DC5-824A-0A503735ABD8},;{3609A8D9-FC0C-4C9B-9F58-0B1D1A4FE556},;{28B17270-375A-4844-9D34-754A457E17BF},{AA384BE4-1800-0010-0000-97E7D7D00B17},{7C317DB0-F399-4024-A289-92CF4B6FB256},{82AF00E4-1800-0010-0000-FCE0F87063F9},{4477F08B-1800-0010-0000-9A09D834DFF5},{715812E8-1800-0010-0000-BBB894911B46},{5063E738-1800-0010-0000-7B7B9AB0B696},{7847611E-92E9-4917-B395-71C91D523104},{FCDED119-A969-4E48-8A32-D21AD6B03253},{1B0F011A-66B4-4865-98B7-0FE132841035},{0FF47E28-76A5-44BA-8EEF-58824252F528},;{9FFF4CAD-41A6-44D2-9467-A16AC4B6DC2A},{7A218E72-B73A-44AF-B4CA-D97EEEAACEFF},{14301A33-A4A1-41B8-A3BF-237AEC8561BB},;
        AdskLanguagePack    REG_DWORD    0x0
        AdskGlobalProductCode    REG_SZ    {7346B4A0-1800-0510-0000-705C0D862004}

    For 2nd Command:
    Code:
    HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\Revit Content Libraries 2018
        DisplayName    REG_SZ    Autodesk Revit Content Libraries 2018
        AdskPackageName    REG_SZ    Autodesk Infrastructure Design Suite Ultimate 2018
        AdskPackageCode    REG_SZ    {ED7E43A0-5A97-4111-8FA6-BDCD75D15F9D}
        AdskProductCode    REG_SZ    {941030D0-1800-0410-0000-818BB38A95FC}
        AdskProductDependencies    REG_SZ    Internet Explorer 7,Microsoft Visual C++ 2008 SP1 Redistributable (x64),Microsoft Visual C++ 2008 SP1 Redistributable (x64) 9.0.30729.6161,Microsoft Visual C++ 2005 Redistributable (x86),Microsoft Visual C++ 2005 Redistributable (x64),Microsoft Visual C++ 2008 SP1 Redistributable (x86),Microsoft Visual C++ 2008 SP1 Redistributable (x86) 9.0.30729.6161,Microsoft Visual C++ 2010 SP1 Redistributable (x86),Microsoft Visual C++ 2010 SP1 Redistributable (x64),Microsoft Visual C++ 2012 Redistributable (x86),Microsoft Visual C++ 2012 Redistributable (x64),Microsoft Visual C++ 2015 Redistributable (x86),Microsoft Visual C++ 2015 Redistributable (x64),{04B34E21-5BEE-3D2B-8D3D-E3E80D253F64},{B42E259C-E4D4-37F1-A1B2-EB9C4FC5A04D},{14866AAD-1F23-39AC-A62B-7091ED1ADE64},{4B90093A-5D9C-3956-8ABB-95848BE6EFAD},{C3A57BB3-9AA6-3F6F-9395-6C062BDD5FC4},{6DA2B636-698A-3294-BF4A-B5E11B238CDD},{F6F09DD8-F39B-3A16-ADB9-C9E6B56903F9},{8CCEA24C-51AE-3B71-9092-7D0C44DDA2DF},Microsoft Visual C++ 2005 SP1 Redistributable ATL Security Update (x86),Microsoft Visual C++ 2005 SP1 Redistributable ATL Security Update (x64),.NET Framework Runtime 4.6,.NET Framework Runtime 4.6.2,.NET Framework Runtime 4.6 Language Pack,{510A08AF-1649-4844-94E5-EAC43A023685},;;;;
        AdskLanguagePack    REG_DWORD    0x0
        AdskGlobalProductCode    REG_SZ    {941030D0-1800-0410-0000-818BB38A95FC}
    upload_2023-8-11_18-16-34.png
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    AdskProductDependencies is what cause the faulty detection
    i will enhance it to avoid such scenario

    ---

    i didn't see that file version before, must be installed with Visual Studio or some program
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,892
    88,833
    340
    All is good, thanks
     
  15. peter4heppner

    peter4heppner MDL Novice

    Apr 24, 2023
    41
    8
    0
    #780 peter4heppner, Aug 12, 2023
    Last edited: Aug 12, 2023
    Can you please refrain from posting false information about the corrent version number.

    edit: To the admins or mods please bann those misleading spam figures.
    They destroy all serious person seeking help forums and other