Solution 1: Delete Discord Files in LocalAppData & AppData
Step 1: To start, close Discord via the Task Manager (right-click on the ‘Taskbar’ and select the ‘Task Manager’ and then select the Discord process and click on ‘End Task’).
Step 2: Now, right-click on the Windows start menu icon in the bottom left-hand corner of the desktop.
Step 3: In the menu, select ‘Run’.
Step 4: In the ‘Run’ window that is located in the bottom left-hand corner, enter ‘%appdata%’ into the empty field and click on the ‘Run’ button below.
Step 5: In the Windows Explorer window, locate the folder named ‘Discord’ then Right-click on the folder, and click ‘Delete’ in the contextual list.
Step 6: Return to the Start menu and load ‘Run’ once more.
Step 7: Type ‘%localappdata%’ in the field and press ‘Run’.
Step 8: Find the ‘Discord’ folder and delete by right-clicking on it then selecting ‘Delete’.
Step 9: Relaunch the Discord setup file and follow the steps that are provided by the installation wizard.
Solution 2:Whitelist Discord Installation Files In Antivirus Software
Discord voice is the file which is termed as dangerous by antivirus software. To bypass an antivirus, you have to Whiteline the files it is picking up and quarantine. The process differs from software to software, so we are using one of the most popular – and free – Avast antivirus. Sometimes, antivirus tools like Avast, quarantine some files that are required for installation, by flagging them as the potentially dangerous file.
Following are the steps you have to follow:
Step 1: If Avast is already open, you can locate it in your taskbar, right-click on it and open. If Avast does not load, you can always start it manually by locating it in Start.
Step 2: Proceed by selecting Scan >> Scan for Viruses >> Quarantine. The quarantine button is located at the bottom of the page.
Step 3: When you open the quarantine you should notice some files related to Discord. Restore the files and click “Add to Exclusions”. Some of the files have already been generated by the installer, then click Overwrite to replace the files and launch the installation again.
Add Discord setup
Make sure that you should not encounter any issues while installing Discord, you need to add the folder containing the Discord setup executable as an exception in Avast. Doing this means the installation process can complete without any files being unexpectedly sentenced to the Avast Virus Chest quarantine.
Step 1: Open your Avast antivirus by the ways we mentioned earlier. After that, go to Settings >> Exclusions. This is where users are free to put files that should not be looked after and should not be scanned or registered as a threat.
Step 2: Add the installation folder of Discord to exclude the folder from scanning. If an error occurs when installing the tool, go to the location where the installer is located and choose it.
Step 3: After this, close your Avast window and try installing Discord again and check to see if the error is gone.
Solution 3: Uninstall & Reinstall Discord
Step 1: Right-click on the Start menu. Select “Search” from the dropdown menu.
Step 2: Now type the “Control Panel.” Click on the first result of the same name.
Step 3: Click on the “Uninstall Program,” which is below the “Programs” icon.
Step 4: Find the Discord among the listed programs. Click on the file and click on the “Uninstall” button.
Step 5: Right-click on the start menu and select “Run.”
Step 6: Type “%appdata%“ and Now click “Run.”
Step 7: Find the Discord folder and delete it.
Step 8: Again, open the “Run”. Search for “%localappdata%” and delete the Discord folder.
Step 9: Visit the Discord website and download the latest version.
Step 10: Double click on the downloaded file. Now follow the steps of the installation wizard.