### 7zSfxConfigZold Installation Examples Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigZold.txt Examples demonstrating various installation scenarios using 7zSfxConfigZold. ```text %%M /y ``` ```text %%M /ai /gm2 ``` ```text %%M /ai9 ``` ```text %%M /aiX239 ``` ```text %%M /aiTE ``` ```text %%M /aiA /gm2 ``` -------------------------------- ### 7zSfxConfigArm64 Example Commands Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigArm64.txt Examples demonstrating how to use 7zSfxConfigArm64 with various switches to automate installations. These examples cover different scenarios from installing all packages to specific ones, silently or with progress. ```text Automatically install all packages and display progress: %%M /y Silently install all packages and display no progress: %%M /ai /gm2 Silently install 2022/2026 package: %%M /ai9 /gm2 Silently install 2010/2012/2013 and Extra VB/C packages: %%M /aiX23E Only update already installed packages: %%M /ai1 ``` -------------------------------- ### Install Extra VB/C Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Uninstalls specific GUIDs and then installs the VB/C runtime. ```INI ;[/aiE] EXTRA VB/C ONLY AutoInstallE="MsiExec.exe /X{C5E3A69D-D392-45A6-A8FB-00B01E2B010D} /quiet /norestart" AutoInstallE="MsiExec.exe /X{C5E3A69D-D393-45A6-A8FB-00B01E2B010D} /quiet /norestart" AutoInstallE="vbc\vbcrun.msi /qn /norestart" ``` -------------------------------- ### Install Multiple Specific Runtime Packages Source: https://github.com/abbodi1406/vcredist/blob/master/README.md Combine multiple package switches after /ai to install several specific runtimes simultaneously. This example installs 2010, 2012, 2013, and Extra VB/C packages. ```bash VisualCppRedist_AIO_x86_x64.exe /aiX23E ``` -------------------------------- ### Install All Packages with Progress Source: https://github.com/abbodi1406/vcredist/blob/master/README.md Use the /y switch for a passive installation that shows progress. All runtime packages will be installed. ```bash VisualCppRedist_AIO_x86_x64.exe /y ``` -------------------------------- ### Install Extra VC Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Uninstalls a specific GUID and then installs the VC runtime. ```INI ;[/aiC] EXTRA VC ONLY AutoInstallC="MsiExec.exe /X{C5E3A69D-D391-45A6-A8FB-00B01E2B010D} /quiet /norestart" AutoInstallC="vbc\vcrun.msi /qn /norestart" ``` -------------------------------- ### Install Extra VB Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Uninstalls a specific GUID and then installs the VB runtime. ```INI ;[/aiB] EXTRA VB ONLY AutoInstallB="MsiExec.exe /X{C5E3A69D-D391-45A6-A8FB-00B01E2B010D} /quiet /norestart" AutoInstallB="vbc\vbrun.msi /qn /norestart" ``` -------------------------------- ### Manual Installation with Prompt Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Initiates a manual installation that prompts the user. ```INI ;[/aiM] Manual w/ prompt AutoInstallM="Installer.cmd /man /x86" ``` -------------------------------- ### Default Full Installation Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Executes the default installer with full options. ```INI ;!@Install@!UTF-8! ;Default, Full RunProgram="hidcon:Installer.cmd /auto /x86" ``` -------------------------------- ### Debug Log Installation Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs with debug logging enabled. ```INI ;[/aiD] Debug Log only AutoInstallD="hidcon:Installer.cmd /debug /x86" ``` -------------------------------- ### Install VSTOR Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs the VSTOR redistributable, falling back to a silent MSI install if directory is not found. ```INI ;[/aiT] VSTOR ONLY AutoInstallT="hidcon:cmd.exe /c dir /b /s %ssu% || (start /w VSTOR\vstor40_x86.msi /qn /norestart)" ``` -------------------------------- ### 7zSfxConfigZold Installation Switches Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigZold.txt Details various switches for controlling the installation process, including passive, quiet, and specific package installations. ```text /y - Passive mode, shows progress. *All* Runtime packages are installed. ``` ```text /ai - Quiet mode, no output shown. *All* Runtime packages are installed. ``` ```text /aiA - Quiet mode. *All* Runtime packages are installed, and hide ARP entries. ``` ```text /ai5 - Quiet mode. *Only* 2005 package is installed. ``` ```text /ai8 - Quiet mode. *Only* 2008 package is installed. ``` ```text /aiX - Quiet mode. *Only* 2010 package is installed. ``` ```text /ai2 - Quiet mode. *Only* 2012 package is installed. ``` ```text /ai3 - Quiet mode. *Only* 2013 package is installed. ``` ```text /ai9 - Quiet mode. *Only* 2022 package is installed. ``` ```text /aiT - Quiet mode. *Only* VSTOR 2010 package is installed. ``` ```text /aiE - Quiet mode. *Only* Extra VB/C package is installed. ``` ```text /aiB - Quiet mode. *Only* Extra VB package is installed. ``` ```text /aiC - Quiet mode. *Only* Extra VC package is installed. ``` ```text /aiV - Quiet mode. *Only* VC++ packages are installed. ``` -------------------------------- ### Required Files for AIO Installers Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Essential files needed alongside the administrative installation directories to create the All-In-One installers. ```text 7zSfx_x86_x64.cmd 7zSfx_x86only.cmd 7zSfxConfig.txt 7zSfxMod.sfx ARP.cmd Installer.cmd Uninstaller.cmd ``` -------------------------------- ### Creating AIO Installers Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Command to execute for creating the All-In-One installers using the configured 7-Zip executable. ```batch Run `7zSfx_x86_x64.cmd` and/or `7zSfx_x86only.cmd` scripts to create the AIO installers ``` -------------------------------- ### Combine Multiple Package Switches Source: https://github.com/abbodi1406/vcredist/blob/master/README.md To install separate packages together, combine their latest switch characters after the /ai switch. This example installs 2005, 2008, 2010, 2012, 2013, 2026, and Extra VB/C packages. ```bash /ai58X239E ``` -------------------------------- ### Administrative Installation Directories Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md List of directories containing administrative installation files for various Visual C++ Redistributable versions. ```text 2005 2008 2010 2012 2013 2022 ucrt vbc vstor ``` -------------------------------- ### Setup Dialog RTF Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Rich Text Format string for the setup dialog title. ```RTF {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} \viewkind4\uc1\pard\sl240\slmult1\f0\fs30\lang9 %product% Setup\par} ``` -------------------------------- ### Quiet Full Installation Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Performs a quiet installation without user interaction. ```INI ;[/ai] Quiet, Full AutoInstall="hidcon:Installer.cmd /quiet /x86" ``` -------------------------------- ### Display Help for Visual C++ Redistributable Installer Source: https://github.com/abbodi1406/vcredist/blob/master/README.md Run this command to display the help message, which lists all available command-line options and their descriptions. ```bash VisualCppRedist_AIO_x86_x64.exe /? ``` -------------------------------- ### Silently Install Specific Runtime Packages Source: https://github.com/abbodi1406/vcredist/blob/master/README.md Use quiet mode (/ai) combined with specific package switches to install only desired runtimes. For example, /ai9 installs the 2022/2026 package. ```bash VisualCppRedist_AIO_x86_x64.exe /ai9 /gm2 ``` -------------------------------- ### Example Work Folder Tree Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Illustrative folder structure for the build tools and associated redistributable components. ```text | |---build_tools | | | | README.md | | | |---_AIO | | 7zSfxConfig.txt | | 7zSfxMod.sfx | | 7zSfx_x86only.cmd | | 7zSfx_x86_x64.cmd | | MSIProductCode.vbs | | | |---_m08 | | vc08.vbs | | vcredist_x64.exe | | vcredist_x86.exe | | | |---_m09 | | vc09.vbs | | vcredist_x64.exe | | vcredist_x86.exe | | | |---_m10 | | vc10.vbs | | vcredist_x64.exe | | vcredist_x86.exe | | WiSumInf.vbs | | | |---_m11 | | vc11.vbs | | vcredist_x64.exe | | vcredist_x86.exe | | | |---_m12 | | vc12.vbs | | vcredist_x64.exe | | vcredist_x86.exe | | | |---_m14 | | vc14.vbs | | VC_redist.x64.exe | | VC_redist.x86.exe | | | |---_ucrt | | UCRT.cmd | | Windows6.0-KB4132941-x64.msu | | Windows6.0-KB4132941-x86.msu | | Windows6.1-KB3118401-x64.msu | | Windows6.1-KB3118401-x86.msu | | Windows8-RT-KB3118401-x64.msu | | Windows8-RT-KB3118401-x86.msu | | Windows8.1-KB3118401-x64.msu | | Windows8.1-KB3118401-x86.msu | | | |---_vbc | | VBCRun.7z | | | |---_vstor | vstor40.vbs | vstor_redist.exe ``` -------------------------------- ### 7zSfxConfigArm64 Installation Titles Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigArm64.txt Configuration for installation dialog titles, including the main product title and messages for cancellation, extraction, and completion. ```text Title="Microsoft %product% Setup" ``` -------------------------------- ### Admin Install Legacy VB/C++ MSIs Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Perform an administrative installation of the built MSI packages to a specified target directory. Use the /quiet flag for unattended installation. ```batch start /w msiexec.exe /a vbrun.msi /quiet TARGETDIR="%cd%\vbc" start /w msiexec.exe /a vcrun.msi /quiet TARGETDIR="%cd%\vbc" start /w msiexec.exe /a vbcrun.msi /quiet TARGETDIR="%cd%\vbc" ``` -------------------------------- ### VC++ Only Installation Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs only the VC++ components, excluding VSTOR and VB. ```INI ;[/aiV] VC++ ONLY (exclude VSTOR and VB) AutoInstallV="hidcon:Installer.cmd /vcpp /x86" ``` -------------------------------- ### Install 2008 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs the 2008 VC++ redistributable silently and checks for its presence. ```INI ;[/ai8] 2008 ONLY AutoInstall8="2008\x86\vc_red.msi /qn /norestart" AutoInstall8="waitall:hidcon:cmd.exe /c reg query %msi%\%m08x86% && (%dll% %i08x86%.%sec%)" ``` -------------------------------- ### Set Installer Language Source: https://github.com/abbodi1406/vcredist/blob/master/README.md Use the /sfxlang switch followed by a language code to set the display language of the installer, if supported. This switch should be the first one to take effect. ```bash /sfxlang:1031 /aiV ``` -------------------------------- ### Install 2013 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs both minimum and additional 2013 VC++ runtimes silently and checks for their presence. ```INI ;[/ai3] 2013 ONLY AutoInstall3="2013\x86\vc_runtimeMinimum_x86.msi /qn /norestart" AutoInstall3="2013\x86\vc_runtimeAdditional_x86.msi /qn /norestart" AutoInstall3="waitall:hidcon:cmd.exe /c reg query %msi%\%m13x86% && (%dll% %i13x86%.%sec%)" ``` -------------------------------- ### Install 2010 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs the 2010 VC++ redistributable silently and checks for its presence. ```INI ;[/aiX] 2010 ONLY AutoInstallX="2010\x86\vc_red.msi /qn /norestart" AutoInstallX="waitall:hidcon:cmd.exe /c reg query %msi%\%m10x86% && (%dll% %i10x86%.%sec%)" ``` -------------------------------- ### Install 2012 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs both minimum and additional 2012 VC++ runtimes silently and checks for their presence. ```INI ;[/ai2] 2012 ONLY AutoInstall2="2012\x86\vc_runtimeMinimum_x86.msi /qn /norestart" AutoInstall2="2012\x86\vc_runtimeAdditional_x86.msi /qn /norestart" AutoInstall2="waitall:hidcon:cmd.exe /c reg query %msi%\%m12x86% && (%dll% %i12x86%.%sec%)" ``` -------------------------------- ### 7zSfxConfigArm64 Usage and Switches Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigArm64.txt This section describes the command-line switches available for 7zSfxConfigArm64. Switches control installation behavior like progress display, quiet mode, and specific package installations. They are case-sensitive. ```text Usage: %%M [switches] All switches are optional, *case-sensitive*. /y - Passive mode, shows progress. *All* Runtime packages are installed. /ai - Quiet mode, no output shown. *All* Runtime packages are installed. /ai5 - Quiet mode. *Only* 2005 package is installed. /ai8 - Quiet mode. *Only* 2008 package is installed. /aiX - Quiet mode. *Only* 2010 package is installed. /ai2 - Quiet mode. *Only* 2012 package is installed. /ai3 - Quiet mode. *Only* 2013 package is installed. /ai7 - Quiet mode. *Only* 2022 package is installed. /ai9 - Quiet mode. *Only* 2026 package is installed for Win 10/11. /aiT - Quiet mode. *Only* VSTOR package is installed. /aiE - Quiet mode. *Only* Extra VB/C package is installed. /aiB - Quiet mode. *Only* Extra VB package is installed. /aiC - Quiet mode. *Only* Extra VC package is installed. /aiV - Quiet mode. *Only* VC++ packages are installed. /aiM - Manual Install mode, shows installation script with prompt. /aiR - Uninstall mode, auto remove all detected runtimes. /aiD - Debug mode, create VCpp_debug.log without install/uninstall any package. /aiP - Manual Hide or Show Runtimes entries in Add/Remove Programs panel. /aiN - Show original Runtimes entries and hide INF override entries. /ai1 - Update mode. Only already installed packages are updated. /aiF - Repair mode. Only already installed packages are reinstalled or updated. /gm2 - Optional switch to disable extraction dialog for all other switches ``` -------------------------------- ### Admin Install VC++ 2008 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Performs an administrative installation of VC++ 2008 redistributables to target directories and cleans up temporary files. ```batch start /w msiexec.exe /a vc64\vc_red.msi /quiet TARGETDIR="%cd%\2008\x64" start /w msiexec.exe /a vc86\vc_red.msi /quiet TARGETDIR="%cd%\2008\x86" rmdir /s /q vc64\ vc86\ ``` -------------------------------- ### Admin Install VC++ 2010 Redistributables (x64) Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Performs an administrative installation of the 64-bit VC++ 2010 redistributable, including applying patches and updating MSI properties. ```batch for /f "tokens=2* delims== " %a in ('cscript WiSumInf.vbs vc10\x64\vc_red.msi ^| findstr /i Subject') do set name="%b" for /f "tokens=2* delims== " %a in ('cscript WiSumInf.vbs vc10\x64\vc_red.msi ^| findstr /i Comments') do set desc="%b" start /w msiexec.exe /a vc10\x64\vc_red.msi /quiet TARGETDIR="%cd%\vc10\z64" start /w msiexec.exe /a vc10\z64\vc_red.msi /quiet TARGETDIR="%cd%\2010\x64" PATCH="%cd%\vc10\x64\msp_kb2890375.msp" cscript WiSumInf.vbs vc10\z64\vc_red.msi Subject=%name% Comments=%desc% move /y vc10\z64\vc_red.msi 2010\x64\ ``` -------------------------------- ### Install 2005 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs the 2005 VC++ redistributable silently and checks for its presence. ```INI ;[/ai5] 2005 ONLY AutoInstall5="2005\x86\vcredist.msi /qn /norestart" AutoInstall5="waitall:hidcon:cmd.exe /c reg query %msi%\%m05x86% && (%dll% %i05x86%.%sec%)" ``` -------------------------------- ### Admin Install VC++ 2012 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Perform administrative installations of the modified VC++ 2012 redistributables to target directories using `msiexec.exe`. ```bash start /w msiexec.exe /a vc64\AttachedContainer\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi /quiet TARGETDIR="%cd%\2012\x64" start /w msiexec.exe /a vc64\AttachedContainer\packages\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi /quiet TARGETDIR="%cd%\2012\x64" start /w msiexec.exe /a vc86\AttachedContainer\packages\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi /quiet TARGETDIR="%cd%\2012\x86" start /w msiexec.exe /a vc86\AttachedContainer\packages\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi /quiet TARGETDIR="%cd%\2012\x86" rmdir /s /q vc64\ vc86\ ``` -------------------------------- ### Quiet Full Installation with ARP Hide Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs quietly and hides the Add/Remove Programs entry. ```INI ;[/aiA] Quiet, Full, Hide ARP AutoInstallA="hidcon:Installer.cmd /quiet /x86" AutoInstallA="hidcon:ARP.cmd /auto /x86" ``` -------------------------------- ### Admin Install VC++ 2010 Redistributables (x86) Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Performs an administrative installation of the 32-bit VC++ 2010 redistributable, including applying patches and updating MSI properties. ```batch for /f "tokens=2* delims== " %a in ('cscript WiSumInf.vbs vc10\x86\vc_red.msi ^| findstr /i Subject') do set name="%b" for /f "tokens=2* delims== " %a in ('cscript WiSumInf.vbs vc10\x86\vc_red.msi ^| findstr /i Comments') do set desc="%b" start /w msiexec.exe /a vc10\x86\vc_red.msi /quiet TARGETDIR="%cd%\vc10\z86" start /w msiexec.exe /a vc10\z86\vc_red.msi /quiet TARGETDIR="%cd%\2010\x86" PATCH="%cd%\vc10\x86\msp_kb2890375.msp" cscript WiSumInf.vbs vc10\z86\vc_red.msi Subject=%name% Comments=%desc% move /y vc10\z86\vc_red.msi 2010\x86\ ``` -------------------------------- ### Admin Install VC++ 2013 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Perform administrative installations of the modified VC++ 2013 redistributables to target directories using `msiexec.exe`. ```bash start /w msiexec.exe /a vc64\AttachedContainer\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi /quiet TARGETDIR="%cd%\2013\x64" start /w msiexec.exe /a vc64\AttachedContainer\packages\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi /quiet TARGETDIR="%cd%\2013\x64" start /w msiexec.exe /a vc86\AttachedContainer\packages\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi /quiet TARGETDIR="%cd%\2013\x86" start /w msiexec.exe /a vc86\AttachedContainer\packages\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi /quiet TARGETDIR="%cd%\2013\x86" rmdir /s /q vc64\ vc86\ ``` -------------------------------- ### Admin Install VC++ 2015-2022 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Perform an administrative installation of VC++ runtime MSI packages to a target directory. ```batch start /w msiexec.exe /a vc64\AttachedContainer\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi /quiet TARGETDIR="%cd%\2022\x64" start /w msiexec.exe /a vc64\AttachedContainer\packages\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi /quiet TARGETDIR="%cd%\2022\x64" start /w msiexec.exe /a vc86\AttachedContainer\packages\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi /quiet TARGETDIR="%cd%\2022\x86" start /w msiexec.exe /a vc86\AttachedContainer\packages\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi /quiet TARGETDIR="%cd%\2022\x86" rmdir /s /q vc64\ vc86\ ``` -------------------------------- ### Install 2022 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs both minimum and additional 2022 VC++ runtimes silently, checks for presence, and applies an update. ```INI ;[/ai7] 2022 ONLY AutoInstall7="2022\x86\vc_runtimeMinimum_x86.msi /qn /norestart" AutoInstall7="2022\x86\vc_runtimeAdditional_x86.msi /qn /norestart" AutoInstall7="waitall:hidcon:cmd.exe /c reg query %msi%\%m22x86% && (%dll% %i22x86%.%sec%)" AutoInstall7="hidcon:Installer.cmd /uc14 /x86" ``` -------------------------------- ### Admin Install VC++ 2005 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Performs an administrative installation of VC++ 2005 redistributables to target directories and cleans up temporary files. ```batch start /w msiexec.exe /a vc64\vcredist.msi /quiet TARGETDIR="%cd%\2005\x64" start /w msiexec.exe /a vc86\vcredist.msi /quiet TARGETDIR="%cd%\2005\x86" rmdir /s /q vc64\ vc86\ ``` -------------------------------- ### Install VC++ 2022 Package on Win 10/11 Source: https://github.com/abbodi1406/vcredist/blob/master/README.md To force installing the stable VC++ 2022 package on Windows 10/11, ensure any VC++ 2026 and VC++ 2022 runtimes (version 14.50.xxxxxx or later) are uninstalled, then run the installer with the /ai7 switch. ```bash VisualCppRedist_AIO_x86_x64.exe /ai7 ``` -------------------------------- ### Install 2026/2022 Redistributable for Win 10/11 Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Installs 2026 or 2022 VC++ runtimes based on availability for Windows 10/11, checking for presence. ```INI ;[/ai9] 2026 ONLY, Win 10/11 AutoInstall9="hidcon:cmd.exe /c dir /b %svc%.* && (start /w 2026\x86\vc_runtimeMinimum_x86.msi /qn /norestart) || (start /w 2022\x86\vc_runtimeMinimum_x86.msi /qn /norestart)" AutoInstall9="hidcon:cmd.exe /c dir /b %svc%.* && (start /w 2026\x86\vc_runtimeAdditional_x86.msi /qn /norestart) || (start /w 2022\x86\vc_runtimeAdditional_x86.msi /qn /norestart)" AutoInstall9="waitall:hidcon:cmd.exe /c dir /b %svc%.* && (reg query %msi%\%m26x86% && (%dll% %i26x86%.%sec%)) || (reg query %msi%\%m22x86% && (%dll% %i22x86%.%sec%))" ``` -------------------------------- ### Silently Install All Packages Source: https://github.com/abbodi1406/vcredist/blob/master/README.md The /ai switch enables quiet mode with no output. Use /gm2 to disable the extraction dialog. All runtime packages are installed. ```bash VisualCppRedist_AIO_x86_x64.exe /ai /gm2 ``` -------------------------------- ### Update Only Installed Packages Source: https://github.com/abbodi1406/vcredist/blob/master/README.md The /ai1 switch allows for updating only packages that are already installed on the system. ```bash VisualCppRedist_AIO_x86_x64.exe /ai1 ``` -------------------------------- ### Admin Install VSTOR 2010 Redistributable Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Perform an administrative installation of VSTOR 2010 MSI packages to a specified target directory. ```batch start /w msiexec.exe /a vc86\vstor40_x86.msi /quiet TARGETDIR="%cd%\vstor" start /w msiexec.exe /a vc64\vstor40_x64.msi /quiet TARGETDIR="%cd%\vstor" rmdir /s /q vc64\ vc86\ ``` -------------------------------- ### Finish Message RTF Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Rich Text Format string for the installation completion message. ```RTF {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} \viewkind4\uc1\pard\sl240\slmult1\f0\fs30\lang9 Installation Is Complete\par\fs16\par\par\par %product% has been installed.\par} ``` -------------------------------- ### 7zSfxConfigArm64 Environment Variables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigArm64.txt Environment variables used by 7zSfxConfigArm64 to define product names, DLL paths, and specific package configurations. These variables help in customizing the installation process. ```text SetEnvironment="product=Visual C++ Redistributable" SetEnvironment="dll=rundll32.exe advpack.dll,LaunchINFSectionEx" SetEnvironment="nat=%SfxFolder36%\Sysnative\%dll%" SetEnvironment="svc=%SfxFolder36%\servicing\Version\10" SetEnvironment="woa=%SfxFolder36%\servicing\Version\arm64_installed" SetEnvironment="sec=inf,Install,,12,N" SetEnvironment="i05x86=.\2005\x86\vcred08_x86" SetEnvironment="i08x86=.\2008\x86\vcred09_x86" SetEnvironment="i10x86=.\2010\x86\vcred10_x86" SetEnvironment="i12x86=.\2012\x86\vcred11_x86" SetEnvironment="i13x86=.\2013\x86\vcred12_x86" SetEnvironment="i22x86=.\2022\x86\vcred14_x86" SetEnvironment="i26x86=.\2026\x86\vcred14_x86" SetEnvironment="i26a64=.\2026\arm64\vcred14_arm64" SetEnvironment="msi=HKLM\SOFTWARE\Classes\Installer\Features" SetEnvironment="m05x86=c1c4f01781cc94c4c8fb1542c0981a2a" SetEnvironment="m08x86=6E815EB96CCE9A53884E7857C57002F0" SetEnvironment="m10x86=1D5E3C0FEDA1E123187686FED06E995A" SetEnvironment="m12x86=DC8A59DBF9D1DA5389A1E3975220E6BB" SetEnvironment="m13x86=1BAD2218D4DE6763BBA0AC63186945E3" SetEnvironment="m22x86=5B084229BEACB1B4AA4A7961FECD2EB6" SetEnvironment="m26x86=81EC7FB4151EF9441909C6BDDEB04B2A" SetEnvironment="m26a64=BF69862AF0014394698F0CD3CB4F101D" ``` -------------------------------- ### 7zSfxConfigZold Update and Extraction Switches Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigZold.txt Switch for updating installed packages and disabling extraction dialogs. ```text /ai1 - Update mode. Only already installed packages are updated. ``` ```text /gm2 - Optional switch to disable extraction dialog for all other switches ``` -------------------------------- ### 7-Zip Path Configuration Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Note on configuring the path for 7-Zip executable used by the scripts. Adjust the path if 7-Zip is installed elsewhere or a portable version is used. ```text the scripts are configured to use `7z.exe` installed at `"%ProgramFiles%\7-Zip"` if you have a different path or use a portable 7-Zip, adjust the 2nd line path accordingly ``` -------------------------------- ### Extract VC++ 2015-2022 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Use 'dark.exe' to extract the contents of the VC++ 2015-2022 redistributable installers into specified directories. ```batch dark.exe VC_redist.x64.exe -x "%cd%\vc64" dark.exe VC_redist.x86.exe -x "%cd%\vc86" ``` -------------------------------- ### Silently Install All Packages and Hide ARP Entries Source: https://github.com/abbodi1406/vcredist/blob/master/README.md Use /aiA for quiet mode and to hide Add/Remove Programs entries. The /gm2 switch suppresses the extraction dialog. ```bash VisualCppRedist_AIO_x86_x64.exe /aiA /gm2 ``` -------------------------------- ### Updating Installer.cmd Script Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Steps to update the Installer.cmd script with new runtime versions. This involves obtaining new ProductCodes, editing script variables, and updating file versions. ```text run `MSIProductCode.vbs` against new msi files to obtain new ProductCode edit the script and go around line 180 update the files version for `_verXX` variables update the following `code` variables ``` -------------------------------- ### Build Legacy VB/C++ MSI Packages Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Use candle.exe and light.exe to build MSI packages for VB/C++ runtimes. Ensure the necessary .wxs files are present. ```batch candle.exe vbcrun.wxs light.exe vbcrun.wixobj -spdb -sice:ICE09 -dcl:none ``` ```batch candle.exe vcrun.wxs light.exe vcrun.wixobj -spdb -sice:ICE09 -dcl:none ``` ```batch candle.exe vbrun.wxs light.exe vbrun.wixobj -spdb -sice:ICE09 -dcl:none ``` -------------------------------- ### 7zSfxConfigZold Usage Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigZold.txt Basic usage syntax for 7zSfxConfigZold. All switches are optional and case-sensitive. ```text Usage: %%M [switches] All switches are optional, *case-sensitive*. ``` -------------------------------- ### 7zSfxConfigZold Manual and Uninstall Switches Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfigZold.txt Switches for manual installation/uninstallation and automatic uninstallation of packages. ```text /aiM - Manual Install mode, shows installation script with prompt. ``` ```text /aiU - Manual Uninstall mode, shows uninstallation script with prompt. ``` ```text /aiR - Auto Uninstall mode, remove all detected runtimes. ``` -------------------------------- ### Remove with Prompt Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Initiates an uninstallation that prompts the user for confirmation. ```INI ;[/aiU] Remove, Prompt AutoInstallU="Uninstaller.cmd /man /x86" ``` -------------------------------- ### Quiet Update Mode Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Performs a quiet update operation for the installation. ```INI ;[/ai1] Quiet, Update mode AutoInstall1="hidcon:Installer.cmd /update /x86" ``` -------------------------------- ### Quiet Repair Mode Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Executes a quiet repair operation for the installation. ```INI ;[/aiF] Quiet, Repair mode AutoInstallF="hidcon:Installer.cmd /repair /x86" ``` -------------------------------- ### Updating 7zSfxMod.sfx Version Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Instructions to update the File Version and Product Version for the 7zSfxMod.sfx file using a resource editor, aligning it with the latest VC++ 14 version. ```text Use a resource editor to update `File Version` and `Product Version` for **7zSfxMod.sfx** according to latest VC++ 14 version ``` -------------------------------- ### Add WiX Binaries to Current CMD Session PATH Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Use this command to temporarily add the WiX binaries folder to the PATH environment variable for the current command prompt session. ```batch set "PATH=W:\GitHub\dotNetFx4xW7\BIN;%PATH%" ``` -------------------------------- ### Add WiX Binaries to System PATH Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Use this command to permanently add the WiX binaries folder to the system's PATH environment variable for easier access to WiX tools. ```batch setx PATH "W:\GitHub\dotNetFx4xW7\BIN;%PATH%" /M ``` -------------------------------- ### Show ARP, Hide INF Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/_AIO/7zSfxConfig86.txt Configures the ARP entry to be visible while hiding INF files. ```INI ;[/aiN] Show ARP, Hide INF AutoInstallN="hidcon:ARP.cmd /uinf /x86" ``` -------------------------------- ### Visual C++ 2026 Redistributable Links (14.50.35403.0) Source: https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md Download links for the Visual C++ Redistributable package version 14.50.35403.0 for x64, x86, and arm64 architectures. ```text https://download.visualstudio.microsoft.com/download/pr/a5269b5b-d759-41b6-9a3b-4f3b4c81641c/242DBB6BD6BBE63E62B1DBA38E823FA16AD740E892FEBBB676371B72436E3081/VC_redist.x64.exe https://download.visualstudio.microsoft.com/download/pr/55f126e8-4b20-4fd7-b000-3e676a5dbe96/3E5DBB2DEBF06ED23F6540058E3CB153402B61A0950B4CE662082EC7728407C0/VC_redist.x86.exe https://download.visualstudio.microsoft.com/download/pr/a5269b5b-d759-41b6-9a3b-4f3b4c81641c/3245F8B30AF914E429BB5CF292B92D3D5F8CE2DF49DB32D126860544B92AE983/VC_redist.arm64.exe ``` -------------------------------- ### Visual C++ 2026 Redistributable Links (14.50.35503.0) Source: https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md Download links for the Visual C++ Redistributable package version 14.50.35503.0 for x64, x86, and arm64 architectures. ```text https://download.visualstudio.microsoft.com/download/pr/e1aee0e7-8b6d-407a-a6bd-bf119569d0c8/0C81230ABB492BDCFEAFA6DF2ECE21EA96B9D1347909C640C1F35185117F7227/VC_redist.x64.exe https://download.visualstudio.microsoft.com/download/pr/e1aee0e7-8b6d-407a-a6bd-bf119569d0c8/C96991DEBE8800927C0D90003C5AE45806C3BD1C097C102318A6B92DD46BE3BB/VC_redist.x86.exe https://download.visualstudio.microsoft.com/download/pr/e1aee0e7-8b6d-407a-a6bd-bf119569d0c8/5F731E06C1FFEACBF91D74B4EC9CF3E021018861FD5D9E0244282024A55839CA/VC_redist.arm64.exe ``` -------------------------------- ### Extract VC++ 2012 Redistributables Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Use `dark.exe` to extract the 64-bit and 32-bit VC++ 2012 redistributables into specified directories. ```bash dark.exe vcredist_x64.exe -x "%cd%\vc64" dark.exe vcredist_x86.exe -x "%cd%\vc86" ``` -------------------------------- ### Visual C++ 2026 Redistributable Links (14.50.35710.0) Source: https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md Download links for the Visual C++ Redistributable package version 14.50.35710.0 for x64, x86, and arm64 architectures. ```text https://download.visualstudio.microsoft.com/download/pr/3b777a0f-1066-455c-bd73-80da97ec7f88/CE1A6F9F3EB3F9581A100BE793AD4D7D043632E1776FB40CB654C59504776151/VC_redist.x64.exe https://download.visualstudio.microsoft.com/download/pr/3b777a0f-1066-455c-bd73-80da97ec7f88/0F09954A16E35346D2435DCA21E0802CAB8D2D9D1929CC6D54EE7C1E1A01B8AD/VC_redist.x86.exe https://download.visualstudio.microsoft.com/download/pr/3b777a0f-1066-455c-bd73-80da97ec7f88/ED888947FD1292919960B793F54945690A7A5BEDA1798256D415B80F16114FCA/VC_redist.arm64.exe ``` -------------------------------- ### Visual C++ 2026 Redistributable Links (14.50.35615.0) Source: https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md Download links for the Visual C++ Redistributable package version 14.50.35615.0 for x64, x86, and arm64 architectures. ```text https://download.visualstudio.microsoft.com/download/pr/8c182023-44de-4185-8bcc-416ce9e49fe8/9C4A4F8EE29264C0DCA873F9F6796F5152C17BDDC45220A618431633AA61E426/VC_redist.x64.exe https://download.visualstudio.microsoft.com/download/pr/8c182023-44de-4185-8bcc-416ce9e49fe8/1AC460F20055BFC18163FB59EFFDA012DC50C3BEBF0A04B16F71152C0872CE1B/VC_redist.x86.exe https://download.visualstudio.microsoft.com/download/pr/8c182023-44de-4185-8bcc-416ce9e49fe8/E6C52E7E62057F7687D823299EC8657E0ACF3796208CE265B932ED8C2269E217/VC_redist.arm64.exe ``` -------------------------------- ### Download Universal C Runtime (UCRT) MSU Files Source: https://github.com/abbodi1406/vcredist/blob/master/build_tools/README.md Direct download links for Universal C Runtime (UCRT) update packages in MSU format for various Windows versions. These files are typically grouped next to a UCRT.cmd script for processing. ```text http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/02/windows8.1-kb3118401-x64_2d9f2a496d7a35dc5e68b541b7218ecf00a68108.msu http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/02/windows8.1-kb3118401-x86_a746ed4d040c315daca0b5b886d832ebec7b40f5.msu http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/02/windows8-rt-kb3118401-x64_704ddb69e2e8073d06f1b0905673c248f0d23d56.msu Windows8-RT-KB3118401-x86.msu / extract from WindowsUCRT.zip: https://www.microsoft.com/en-us/download/details.aspx?id=50410 http://download.windowsupdate.com/d/msdownload/update/software/updt/2016/02/windows6.1-kb3118401-x64_99153d75ee4d103a429464cdd9c63ef4e4957140.msu http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/02/windows6.1-kb3118401-x86_db0267a39805ae9e98f037a5f6ada5b34fa7bdb2.msu http://download.windowsupdate.com/c/msdownload/update/software/updt/2018/06/windows6.0-kb4132941-x64_20144f9f3a533aff2406761c0363b6a44108e358.msu http://download.windowsupdate.com/c/msdownload/update/software/updt/2018/06/windows6.0-kb4132941-x86_448f787762f5a23499d669c4e584073e17303474.msu ``` -------------------------------- ### Visual C++ 2026 Redistributable Links Source: https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md Download links for the Visual C++ Redistributable package version 14.51.36247.0 for x64, x86, and arm64 architectures. ```text https://download.visualstudio.microsoft.com/download/pr/ebdab8e5-1d7b-4d9f-a11b-cbb1720c3b12/843068991DAAA1F73AD9F6239BCE4D0F6A07A51F18C37EA2A867E9BECA71295C/VC_redist.x64.exe https://download.visualstudio.microsoft.com/download/pr/57eef8ae-a341-46c3-b0bc-c041027b54cd/F0BAB33A302B3CDB2E11113760D016F54FD3D2632C65BA7834FAC4F0ABD7F1A3/VC_redist.x86.exe https://download.visualstudio.microsoft.com/download/pr/57eef8ae-a341-46c3-b0bc-c041027b54cd/B70EF586669A620A0A30A1156969C05C6A3831DC8F8BC992DA75779D2A92F944/VC_redist.arm64.exe ``` -------------------------------- ### Visual C++ 2026 Redistributable Links (14.51.36231.0) Source: https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md Download links for the Visual C++ Redistributable package version 14.51.36231.0 for x64, x86, and arm64 architectures. ```text https://download.visualstudio.microsoft.com/download/pr/c1bd4f2c-3672-468e-8480-7ed419dbb641/90E48ADE404E4576D023ABFA374F323555F233982A8805EA9AC63DCA9491A16B/VC_redist.x64.exe https://download.visualstudio.microsoft.com/download/pr/b60c012d-a759-4c42-aa95-4e534cb79317/B6AB675F0A27E6600F9726E75DEA08D99C15F8EA4B842A2A1D988FA9529D39B9/VC_redist.x86.exe https://download.visualstudio.microsoft.com/download/pr/b60c012d-a759-4c42-aa95-4e534cb79317/E912E9E653A5295A382BF86521F9B852AEECA823F4A9BF10BB2FBA7DD9445288/VC_redist.arm64.exe ```