question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Installation Failed (Windows 10) Discord?

See original GitHub issue

** Description**

GitHub Desktop Error Log.txt

Hello! I’m trying to install GitHub Desktop (using the standard 64-bit installer downloaded from the website) and I’m receiving an “Installation has failed” error. Seems it’s due to Discord or something from what I see in the logs but the issue is… There ISN’T a discord folder. I deleted it as Seems I uninstalled it in the past but left few folders. I’ve tryed running it as Admin with same errors. I’ve tred bringing back the files I removed and delete the files it states causing the error but it still gives same error.

Version GitHub Desktop: GitHubDesktopSetup Operating system: Microsoft Windows [Version 10.0.17134 Build 17134] Steps to Reproduce

  1. Download then uninstall Discord (Leaving files behind)
  2. Download the setup exe and run it as administrator Expected Behavior The installation to work Actual Behavior The installation has failed error

Additional Information There is currently no anti-virus running on my machine, it is Almost up to date, and Windows Defender/Firewall is disabled.

Additional Information Logs

13948> 2018-09-10 22:46:46> Program: Starting Squirrel Updater: --install . 13948> 2018-09-10 22:46:46> Program: Starting install, writing to C:\Users\Mudslide\AppData\Local\SquirrelTemp 13948> 2018-09-10 22:46:46> Program: About to install to: C:\Users\Mudslide\AppData\Local\Discord 13948> 2018-09-10 22:46:46> Program: Install path C:\Users\Mudslide\AppData\Local\Discord already exists, burning it to the ground 13948> 2018-09-10 22:46:47> Utility: DeleteDirectory: could not delete - C:\Users\Mudslide\AppData\Local\Discord\app-0.0.301\lib\net45: System.IO.IOException: The directory is not empty.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() 13948> 2018-09-10 22:46:47> Utility: DeleteDirectory: could not delete - C:\Users\Mudslide\AppData\Local\Discord\app-0.0.301\lib: System.IO.IOException: The directory is not empty.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() 13948> 2018-09-10 22:46:47> Utility: DeleteDirectory: could not delete - C:\Users\Mudslide\AppData\Local\Discord\app-0.0.301: System.IO.IOException: The directory is not empty.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() 13948> 2018-09-10 22:46:48> IEnableLogger: Failed to remove existing directory on full install, is the app still running???: System.IO.IOException: The process cannot access the file ‘C:\Users\Mudslide\AppData\Local\Discord\packages\Discord-0.0.301-full.nupkg’ because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalDelete(String path, Boolean checkHost) at System.IO.File.Delete(String path) at Squirrel.Utility.<>c.<DeleteDirectory>b__22_0(String file) at Squirrel.Utility.<>c__DisplayClass15_11.<ForEachAsync>b__1() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c__DisplayClass16_01.<<ForEachAsync>b__1>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c.<<DeleteDirectory>b__22_1>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c__DisplayClass16_01.<<ForEachAsync>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__37.MoveNext() 13948> 2018-09-10 22:46:48> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\Mudslide\AppData\Local\Discord\packages\Discord-0.0.301-full.nupkg' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalDelete(String path, Boolean checkHost) at System.IO.File.Delete(String path) at Squirrel.Utility.<>c.<DeleteDirectory>b__22_0(String file) at Squirrel.Utility.<>c__DisplayClass15_11.<ForEachAsync>b__1() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c__DisplayClass16_01.<<ForEachAsync>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c.<<DeleteDirectory>b__22_1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c__DisplayClass16_01.<<ForEachAsync>b__1>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__37.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Update.Program.<Install>d__5.MoveNext() — End of inner exception stack trace — at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args) —> (Inner Exception #0) System.IO.IOException: The process cannot access the file ‘C:\Users\Mudslide\AppData\Local\Discord\packages\Discord-0.0.301-full.nupkg’ because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalDelete(String path, Boolean checkHost) at System.IO.File.Delete(String path) at Squirrel.Utility.<>c.<DeleteDirectory>b__22_0(String file) at Squirrel.Utility.<>c__DisplayClass15_11.<ForEachAsync>b__1() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c__DisplayClass16_01.<<ForEachAsync>b__1>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c.<<DeleteDirectory>b__22_1>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<>c__DisplayClass16_0`1.<<ForEachAsync>b__1>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__37.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Update.Program.<Install>d__5.MoveNext()<—

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
sagarbk0commented, Jan 20, 2020

I got the same error message, I’m using Windows 10 and when I ran it in compatibility mode for Windows 8, it installed!

0reactions
lorein0688commented, May 2, 2021

The most common reason for the discord installation failed is the corrupted system files. It might happen some of the system files get corrupted while installing a new program. So, try repairing the corrupted system files by running the SFC tool, moreover also end the Discord process running in the background and set the compatibility with the operating system. Hope this works for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Tested Fixes to Try if Discord Installation has Failed
1. Stop the Discord process · 2. Uninstall the previous Discord app · 3. Remove the file still left on your device ·...
Read more >
[Windows] Installer Errors - Discord Support
Though not intentional, there may be various issues that can cause the installation process to fail. Here are some general troubleshooting ...
Read more >
[Solved] Discord Installation Has Failed [Easily] - Driver Easy
Step 1: Disable Discord in Task Manager · On your keyboard, press the Windows logo key and R at the same time to...
Read more >
Top 6 Ways to Fix Discord Installation Has Failed Error on ...
Top 6 Ways to Fix Discord Installation Has Failed Error on Windows 10/11 · 1. Clear Discord App Data · 2. Run Discord...
Read more >
Discord Installation has failed on Windows PC
Discord Installation has failed · Run the Program Install and Uninstall Troubleshooter · Clear Discord Local AppData · Install latest version of ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found