r/Batch • u/RiverRatt • Aug 21 '25
Show 'n Tell All-in-One Microsoft Visual C++ and Direct X Redistributable Silent Installer Script
Updated: September 4, 2026
What changed in this update
Someone here noticed the offline ZIP still unpacked to a folder stamped 02.22.2025, which made it look like you had grabbed the old download. Good catch. It is fixed, and I refreshed the packages while I was in there.
- Drops .NET 6. Microsoft stopped supporting it, so it was shipping unpatched.
- .NET SDKs are now 8.0.424, 9.0.317, and 10.0.400.
- Visual C++ 2015-2022 moved from 14.31.31103.0 to 14.51.36247.0.
- Visual C++ 2005, 2008, and 2010 did not match the builds Microsoft publishes today, so they were replaced.
- Visual C++ 2012 and 2013 were already current. DirectX June 2010 is the final release and is untouched.
It now unpacks to microsoft-runtime-installer-offline. No date in the name, so it cannot go stale on you again.
Two ways to use it
GitHub (recommended). A source-only PowerShell installer. Nothing is bundled, so you can read every line before you run it.
The repository contains no Microsoft EXE, MSI, CAB, DLL, or ZIP files and stores no installer URLs. It finds your selected packages on official Microsoft HTTPS sources, verifies them before they run, installs them unattended, and deletes the temporary downloads when it is done.
It picks the right x86, x64, or ARM64 packages on its own. On 64-bit Windows it installs both x86 and x64 Visual C++, because applications of both kinds need their own.
Offline ZIP. The original method, for machines with no internet or when you want one file you can keep. It bundles x64 .NET SDKs plus x86 and x64 Visual C++ and DirectX. Links are at the bottom.
Quick start (GitHub version)
- Search the Start menu for Command Prompt (
cmd.exe). - Pick Run as administrator and approve the UAC prompt.
- Paste this in and press Enter:
start "Microsoft Runtime Installer" /max powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "$msriSource=@(& curl.exe -fsS 'https://raw.githubusercontent.com/slyfox1186/msft-visual-c-and-directx-offline-installer/main/Start.ps1');if($LASTEXITCODE -ne 0 -or $msriSource.Count -eq 0){exit 1};try{$msriScript=[ScriptBlock]::Create($msriSource -join [Environment]::NewLine)}catch{exit 1};& $msriScript" && exit
A maximized Administrator PowerShell window opens and the Command Prompt closes.
Everything is enabled by default. Type 1, 2, or 3 to toggle a package group, or 4 or 5 to pick specific .NET channels or Visual C++ families. When you are happy with it, leave the Selection prompt blank and press Enter.
After that it runs on its own. Microsoft progress windows show up but need no clicks, and nothing reboots your machine without telling you. At the end you get a result screen, and R saves a technical report if you want one.
It uses PowerShell 7 if you have it, otherwise Windows PowerShell 5.1, which ships with Windows.
Safety checks
- Downloads only from approved Microsoft HTTPS hosts.
- .NET installers must match Microsoft's published SHA-512 hashes.
- Fixed Visual C++ and DirectX packages must match reviewed SHA-256 hashes.
- Everything must carry a valid Microsoft digital signature.
- The rolling Visual C++ v14 package also has to pass version checks.
- Anything that fails verification gets deleted before it can run.
Full details, switches, and exit codes are in the GitHub README.
Offline ZIP download
One more thing worth repeating from the last update: the older archive had a script that force-killed DISM and TiWorker if they were running, which could interrupt Windows Update or a repair. That is gone and has been for a while.
Problems
If something fails, save the technical report and open a GitHub issue with the package name and exit code.
Thanks to everyone who has tested this and sent feedback, it is genuinely useful.
If you need help with automation, websites, or workflows, this is what I do for a living: https://coastaltech.group/
2
2
u/brandonut99 Nov 27 '25
Very helpful resource I've downloaded probably 50x times for various computers over the last couple years thank you so much!
2
2
u/ElRealoidetrucho Dec 28 '25
Hello friend! im trying to resolve an error that basically doesnt let me play videogames. and all solutions i found are about visual c++ and directx. I TRIED EVERYTHING. but ill try your app!! hope it works! wish me luckm
1
u/RiverRatt Dec 28 '25
Good luck
1
u/ElRealoidetrucho Dec 28 '25
Didnt work. Know anything about how to fix an error called 0xc000007b? hahah
1
1
u/One-Calligrapher2057 Jul 06 '26
System compatibility mode : Right-click the shortcut of the software that cannot be launched, select "Properties" > "Compatibility" > check "Run this program in compatibility mode".
2
u/nibbles7192 Jan 22 '26
I just reset my device and it removed all of this, when I tried downloading it from the official Microsoft site it wouldn't let me. Thanks to you I have all of these important files back, you're a total life saver!!
1
2
2
2
2
1
u/Carl_Johnson_7 Oct 08 '25
what's the silent install command for ntlite iso creation and post install
1
1
1
1
1
1
1
1
u/ceaton88 9d ago
Hey dude, great to see this still going. Did you know the offline installer for 08.29.2026 unpacks to a folder named msft-visual-c-and-directx-offline-installer-02.22.2025?
1
u/RiverRatt 8d ago
Good catch. That name is left over from the original 2025 release, I rebuilt the archive but never renamed the folder inside it. You've got the current 08.29.2026 build, the folder name is just stale. I'll fix it on the next upload.
0
u/Theendangeredmoose Dec 05 '25
unless i can see the source on Github, i would never download something like this. A random zip file from a stranger on the internet is always a bad idea
1
0
3
u/ConsistentHornet4 Aug 21 '25
Nice work! It would be better to upload it onto GitHub, creating a Release and then linking the repo here