Fix 0x80070666 When Installing Microsoft Visual C++
In this article
Error 0x80070666 usually appears when you try to install a Microsoft Visual C++ Redistributable package and a newer or same version is already installed. The fix is to either uninstall the existing version and reinstall, or repair the existing installation. Below are the exact steps to resolve it.
What You'll Need
- Administrator access to your Windows PC (you'll need to confirm UAC prompts).
- Internet connection to download the latest Visual C++ Redistributable from Microsoft's official site.
- Optional: a third-party uninstaller tool (like Revo Uninstaller) if the standard uninstall fails, but not required.
Step-by-Step
Step 1: Identify which Visual C++ package is causing the error. The error message usually names the specific package (e.g., "Microsoft Visual C++ 2015-2022 Redistributable (x64)"). If not, look at the log file created during the failed install (often in %TEMP% folder, files starting with "DD_" or "SXS").
Step 2: Uninstall the existing Visual C++ package. Go to Settings > Apps > Installed apps (Windows 11) or Control Panel > Programs and Features (Windows 10). Find the exact package name from Step 1. Select it and click Uninstall. Follow the prompts. If you get an error during uninstall, skip to the "Common Mistakes" section.
Step 3: Restart your computer. This clears any file locks and registry entries that might be left behind.
Step 4: Download the latest Visual C++ Redistributable. Go to Microsoft's official download page for "Visual C++ Redistributable" (search on microsoft.com). Download the version that matches the one you uninstalled (x86, x64, or ARM64). If you're unsure, download both x86 and x64 – installing both is safe and recommended for most apps.
Step 5: Run the installer as administrator. Right-click the downloaded .exe file and select Run as administrator. Accept the UAC prompt.
Step 6: Choose the repair option if prompted. If the installer detects an existing installation, it may offer a Repair option. Click Repair instead of Uninstall. This often fixes the error without needing to uninstall first.
Step 7: If the installer still shows 0x80070666, use the command line to force a repair. Open Command Prompt as administrator (search for "cmd", right-click, Run as administrator). Navigate to the folder where the downloaded .exe is located (e.g., cd C:\Users\YourName\Downloads). Then run the installer with the /repair flag. For example: vc_redist.x64.exe /repair. This will repair the existing installation without uninstalling.
Step 8: If repair doesn't work, uninstall all Visual C++ redistributables and reinstall them fresh. Uninstall every entry that says "Microsoft Visual C++" in the installed apps list (there may be many). Restart, then install the latest x86 and x64 versions. This is the nuclear option but usually resolves persistent errors.
Step 9: Check for Windows updates. Go to Settings > Windows Update and install any pending updates. Restart after updates.
Step 10: Run the installer again. After following the above, the installation should complete without error.
Common Mistakes
- Not running the installer as administrator. This can cause the error to appear even if the fix is simple.
- Uninstalling only the package that appears in the error, but leaving older versions. Sometimes the error is caused by a conflicting older version. Uninstall all Visual C++ redistributables if needed.
- Using a third-party download site. Always download from Microsoft's official site to avoid corrupted or malicious files.
- Skipping the restart after uninstall. File locks can prevent a clean reinstall.
- Assuming the error is for the 64-bit version only. Some apps require the 32-bit (x86) version. Install both.
Tips
- Keep a record of which Visual C++ packages you have installed. You can export the list from the registry or use a tool like PowerShell to list them.
- If you're installing a specific application (like a game or CAD software), check its documentation for the exact Visual C++ version it needs. Sometimes the error appears because the app requires an older version that you've already replaced.
- Use the
/quietflag with the installer for a silent install, but only after you've confirmed the repair works. - If you have multiple Visual C++ versions, it's normal to have many installed. Don't uninstall them all unless you're troubleshooting.
Troubleshooting
If the error persists after uninstall and reinstall:
- Check the Windows Event Viewer for more details. Open Event Viewer (search for it), go to Windows Logs > Application, and look for errors around the time of your install attempt. The error details may point to a specific component.
- Use the Microsoft Program Install and Uninstall Troubleshooter. Download it from Microsoft's official site and run it. It can fix corrupted registry entries that block installation.
- Check if the Windows Installer service is running. Press Win+R, type
services.msc, and ensure "Windows Installer" is set to Manual and started. - If you have a third-party antivirus, temporarily disable it (real-time protection) during the install. Some antivirus software interferes with MSI installers.
- As a last resort, perform a System Restore to a point before the error started, if you have one. This will revert registry changes without affecting your files.
Frequently Asked Questions
Why does error 0x80070666 happen?
It happens when the Visual C++ Redistributable installer detects that a newer or identical version is already installed, but the installer's logic fails to recognize it as valid, causing a conflict.
Can I ignore this error if the program I'm installing seems to work?
No. The program may crash or have missing features if the required runtime isn't properly installed. Fix the error to ensure stability.
Should I uninstall all Visual C++ redistributables?
Only if you're troubleshooting and other methods fail. It's safe to uninstall all and then install the latest x86 and x64 versions, but some older apps may need specific older versions. In that case, install the older versions after the latest.
What's the difference between x86 and x64 versions?
x86 is for 32-bit applications, x64 for 64-bit applications. Most modern systems are 64-bit, but many apps are still 32-bit, so install both.
Does this error affect my system security?
No, it's purely an installation issue. It doesn't indicate a security breach or vulnerability.
Can I use a third-party uninstaller to remove Visual C++?
Yes, tools like Revo Uninstaller can help remove leftover registry entries, but be cautious – they can delete too much. Stick to the standard uninstall first.