msvc.win

Install Visual C++ Redistributable, DirectX runtime and .NET Framework 3.5 with one single command!

Quick Start

You can install Visual C++ Redistributable, DirectX runtime and .NET Framework 3.5 with 3 simple steps.

  1. Open PowerShell
    To do that, press the Windows key + X (or, right click on Start Button), then select PowerShell or Terminal.

  2. Copy and paste the code below (either pressing Ctrl + V or right click on the window), then press enter.

    irm https://get.msvc.win | iex
  3. Confirm UAC Prompt when asked, and wait for the procedure completes. You're advised to disable or uninstall third-party antivirus app (most notably Qihoo 360 Total Security) before proceed.

Want to use Offline Installer?

FAQ

  1. Why create this site?
    Some programs or games distributed on the Internet usually don't have necessary Runtime bundled, and users may have a headache on dealing with these programs. I've seen many gamers who had no idea about it and kept uninstalling and reinstalling games that don't bundle with runtimes, hoping it would eventually fix the problem.
    If you frequently reinstall Windows, this is definitely the first thing you'd like to install other than drivers. I want an easy solution to use as you go, rather than mistakenly click into adwares.
    Besides, the domain is easy to memorize: msvc stands for Microsoft Visual C++, and win stands for Windows.

  2. Is it safe to use?
    Yes. The script is easy to understand, as we will never obfuscate the script. The only third-party program it uses is aria2c, an open-source commandline based downloader for downloading necessary installers faster.
    All necessary installers are downloaded from Microsoft directly, to ensure you will always get legit and latest version of Runtimes.
    You're welcome to review and contribute on our GitHub repository.

  3. Can't I just use WinGet for installing necessary Runtime?
    Of course you can, but WinGet is absent in Windows Enterprise LTSC (EnterpriseS), as well as Windows Server Core Mode.
    We are absolutely unwilling to install WinGet on these environments just for downloading necessary Runtime installers.

  4. Why the script cannot create SSL/TLS connection?
    The root certificate of your Windows operating system has expired.

    • When using Window 7/Server 2008 R2, please use UpdatePack7R2 to update OS to latest version.
    • When using Windows 8/8.1 or Server 2012/R2, please use Legacy Update to update Root Certificate.
    • When using Windows 10 (as well as it's server equivalent) or newer, please perform Windows Update.

  5. My PC has corrupted Visual C++ Redistributable Runtime installation that cannot be removed due to missing MSI files. How can I fix it?
    You can use Windows Installer CleanUp Utility 7.2 to force remove corrupted Visual C++ Redistributable Runtime installation. To do that:

    • Run downloaded msicuu2.exe with Administrator privilege by right click on it, and choose "Run As Administrator". If you see error messages related to VBScript, it means you didn't run it as Administrator.
    • Locate "Windows Installer CleanUp Utility" in Start Menu, right click on it, and choose "More" - "Run As Administrator".
    • Select all of entries started by "Microsoft Visual C++", and click "Remove", confirm Remove. If you can't see them or you can't remove them, it means you didn't run it as Administrator.
    • Now you can try to execute the command to install Runtime again.

  6. Can I omit the https:// prefix?
    Not recommended, but you can omit it.
    This is a precaution just in case the script may get hijacked by a bad ISP. Since some users may not know how to input colon and pipe symbol properly, so we allowed you omitting https:// prefix.

  7. What are the pros and cons of this script from most of offline packages (e.g. DirectX Repair, abbodi1406's VisualCppRedist_AIO)?
    Pros:

    • You only need to memorize one single command, instead of digging the package from anywhere.
    • The script is open source, and will always download from Microsoft official for genuine files, instead of clicking into malicious paid search result on Search Engine.
    • The script will always point you to latest version of Visual C++ Redistributable Runtimes.
    Cons:
    • Requires Internet Connection.
    • Does not support outdated Windows (e.g. Windows 7) without latest updates installed, and you are not encouraged to use either.

  8. Do I need to uninstall existing Visual C++ Redistributable Runtimes before executing?
    No. The installer will automatically updates existing Runtimes to latest version. For example, if you already got Visual C++ 2015 Redistributable Runtime from initial release installed, it will be automatically updated to latest version.

  9. I'm using latest Windows 11 Insider Release. Can I still install .NET Framework 3.5?
    Yes, it will automatically download the suitable version (known as .NET Framework 3.5 Preview for Windows vNext) for Windows 11 Insider Release, as the previous method for installing .NET Framework 3.5 with your Windows Installation ISO no longer works since Build 27965.

  10. Are there options to install 32-bit Visual C++ Redistributable runtimes only?
    Yes. You can execute this command to install 32-bit Visual C++ Redistributable Runtimes, without installing DirectX:

    irm https://get.msvc.win/32 | iex
    Similarly, you can execute this command to install both 32-bit and 64-bit Visual C++ Redistributable Runtimes, without installing DirectX:
    irm https://get.msvc.win/64 | iex
    And this command for installing DirectX only:
    irm https://get.msvc.win/dx | iex
    And this command for installing .NET Framework 3.5 only:
    irm https://get.msvc.win/net35 | iex

  11. Does it support Windows 7 / Server 2008 R2?
    Yes, only after following conditions are met:


    Then you can use the command above. As for Windows XP and Vista, forget about it.

  12. Can it download via proxy?
    Yes. If you have a system proxy configured, it will download necessary files via proxy automatically. As a special measure for Chinese users who have difficulty on downloading files via GitHub releases, or the ISP supplied DNS pollutes resolving result, aria2c binary will be downloaded from Gitee, and it will automatically use AliDNS (233.5.5.5) to download installers from Microsoft Server. System proxy configuration has higher priority than AliDNS.

  13. Certain programs compiled with Visual C++ 2015 (e.g. ACDSee) cannot run after solely installing Visual C++ v14. What should I do?
    You may need to install older version Visual C++ 2015-2022 Redistributable Runtime, then execute the command to upgrade to Visual C++ v14 afterwards. Make sure you have uninstalled Visual C++ v14 Redistributable Runtime before you proceed.
    [32-bit x86] [64-bit x64] [ARM64]

  14. I'd like to integrate it into Windows Installation Image, how can I do that?
    You can download the script from here.
    You can place extracted $OEM$ folder and autounattend.xml into sources folder of Windows Installation Image, or USB drive that created by Windows Media Creation Tool.
    If you'd like to slipstream the script into install.wim, please rename autounattend.xml into unattend.xml and place it into Windows/Panther folder (create one if doesn't exist) of install.wim, then copy GetMSVC.ps1 from $OEM$/$$/Setup/Scripts to Windows/Setup/Scripts folder (create one if doesn't exist) of install.wim.

  15. I came here for Visual C++ development tool. Where can I download it?
    It's a part of Visual Studio. You can download from here.

  16. It doesn't work as expect. Where can I ask for help?
    You can send feedback on our GitHub repository.