The “Installation has failed” error when trying to install Discord is almost always caused by leftover files from a previous Discord installation conflicting with the new one. Here’s the reliable fix.
The main cause
Discord stores files in multiple locations on Windows. When an installation fails or is incompletely uninstalled, remnants stay behind. When you try to reinstall, the installer encounters these files and fails. The fix is to completely remove all Discord remnants before reinstalling.
Complete removal and clean reinstall
-
Uninstall Discord via Windows Settings: Settings > Apps > find Discord > Uninstall. If Discord isn’t listed, skip this step.
-
Kill any running Discord processes: Open Task Manager (Ctrl + Shift + Esc), look for any Discord processes, and end them all.
-
Delete remaining Discord folders:
Press Windows + R and open each of these paths, deleting the Discord folder inside each if it exists:
%AppData%– look for a “Discord” folder and delete it%LocalAppData%– look for a “Discord” folder and delete it%LocalAppData%\SquirrelTemp– delete this entire folder if it exists
-
Restart your PC
-
Download a fresh installer from discord.com and run it
This clears all remnants and gives the installer a clean environment to work with. It resolves the installation failure in the vast majority of cases.
If the clean reinstall still fails
Run as administrator: Right-click the Discord installer > Run as administrator. Some installation paths require elevated permissions that a normal user launch doesn’t provide.
Antivirus interference: Some antivirus programs block Discord’s installer, particularly the SquirrelSetup component Discord uses. Temporarily disable real-time protection, run the installer, then re-enable protection.
Windows Installer service: Press Windows + R > type services.msc > find “Windows Installer” > right-click > Restart. Then try the installer again.
Check available disk space: Discord needs a few hundred MB of free space. If your drive is nearly full, the installer may fail silently.
Discord Canary as an alternative
If the standard installer continues to fail, Discord Canary (Discord’s alpha build, available at discord.com/canary) uses a different installer path and sometimes succeeds where the standard installer doesn’t.