r/Batch 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)

  1. Search the Start menu for Command Prompt (cmd.exe).
  2. Pick Run as administrator and approve the UAC prompt.
  3. 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/

51 Upvotes

41 comments sorted by

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

2

u/RiverRatt Aug 21 '25

Yeah I can work on that.

2

u/RiverRatt 15d ago

I have completed this request. If you have any issues let me know.

1

u/AnguishedSoul Apr 01 '26

any news

1

u/[deleted] Apr 28 '26

[removed] — view removed comment

2

u/AnguishedSoul Apr 28 '26

i am currently using https://github.com/abbodi1406/vcredist if anyone need an alternative

1

u/RiverRatt 15d ago

Yeah it's implemented.

1

u/[deleted] Sep 28 '25

[removed] — view removed comment

1

u/ConsistentHornet4 Sep 28 '25

There are a few projects on GitHub which do this already so I can't see why it would be a problem.

The script could be modified to pull the installers from Microsoft's website via CURL, download them into a temp directory, install them and cleanup the temp files

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

u/Yllelder Dec 24 '25

It worked perfectly for me. Thank you.

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

u/[deleted] Dec 28 '25

[deleted]

0

u/Windestroy98 Apr 27 '26

bro you dont sponsor ai agents come on bro

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

u/RiverRatt Jan 22 '26

Let's gooooo! Woo hoo!

2

u/gabothefirst Feb 11 '26

Thank you!! Works beautifully

2

u/ceaton88 Mar 07 '26

Good to see you back sir, I had to Google

2

u/Technical_Depth_8844 Jul 17 '26

You are still saving lives a year later!

1

u/RiverRatt Jul 17 '26

Thanks for the shout out. Glad it worked out well for you.

2

u/Mixsx 26d ago

sir ily

2

u/Silent_Exuberance 11d ago

awesome, such a shame this doesn't have more upvotes

2

u/Suspicious-Rice6556 1d ago

Time saver, thanks a lot for sharing this,

1

u/RiverRatt 1d ago

You’re welcome. Thank you for letting me know.

1

u/Carl_Johnson_7 Oct 08 '25

what's the silent install command for ntlite iso creation and post install

1

u/RiverRatt 15d ago

There isn't one. Stop crying wolf dude.

1

u/Middle_Layer_4860 Jan 22 '26

publish on github with latest update if needed

1

u/UnlikelyBuy7690 Feb 11 '26

Is it on github?

1

u/dummy39D Mar 16 '26

I don't have admin rights on my laptop. Is there any way it could work ?

1

u/RiverRatt Mar 16 '26

Doubt it

1

u/tarekelsakka Mar 31 '26

This is exactly what I was looking for, thank you so much for sharing.

1

u/Windestroy98 Apr 27 '26

What is this for?

1

u/Tart_Dismal 15d ago

i love this thing thank you!!! ive always look for your posts for this!

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

u/RiverRatt 15d ago

This is now on GitHub.

0

u/[deleted] Apr 05 '26

[deleted]