Docker Community Forums

Share and learn in the Docker community.

Installation of docker fails (after prior install)

I used to have docker running on my WIndows 10 system, but a few months back I removed docker, and hyper-v

I’ve just re-enabled hyper-v, and have an ubuntu vm working happily.

I went to reinstall docker but whatever I try it seems to hang on ‘removing files’

I’ve tried manually

  • checking/removing docker entries in the registry
  • removing docker directories under %APPDATA% %PROGRAMDATA% and c:\program*
  • trying both beta and production versions

The same behaviour each time.

Here’s the output log:

S:\downloads>[09:23:19.335] [InstallHandler] Not run as admin, relaunching with UAC prompt
[09:23:21.791] [InstallHandler] No d4w installation found
[09:23:21.793] [InstallHandler] Using embedded package
[09:23:21.891] [InstallWorkflow] Using package: res:d4w
[09:23:21.895] [InstallWorkflow] Downloading
[09:23:22.754] [InstallWorkflow] Exracting manifest
[09:23:22.849] [InstallWorkflow] Checking prerequisites
[09:23:22.888] [InstallWorkflow] Unpacking artifacts
[09:23:32.391] [InstallWorkflow] Deploying component LightweightInstaller.CreateGroupAction
[09:23:32.439] [InstallWorkflow] Deploying component LightweightInstaller.AddToGroupAction
[09:23:32.480] [InstallWorkflow] Deploying component LightweightInstaller.ServiceAction
[09:23:32.749] [InstallWorkflow] Deploying component LightweightInstaller.ShortcutAction
[09:23:32.776] [InstallWorkflow] Deploying component LightweightInstaller.ShortcutAction
[09:23:32.784] [InstallWorkflow] Component LightweightInstaller.ShortcutAction failed
Exception type: System.IO.FileNotFoundException, Exception message: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at System.Runtime.InteropServices.ComTypes.IPersistFile.Save(String pszFileName, Boolean fRemember)
at LightweightInstaller.ShortcutAction.DoAsync(CancellationToken cancelToken)
at LightweightInstaller.InstallWorkflow.d__19.MoveNext()
[09:23:32.788] [InstallWorkflow] Installation failed
Exception type: System.IO.FileNotFoundException, Exception message: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace:
at System.Runtime.InteropServices.ComTypes.IPersistFile.Save(String pszFileName, Boolean fRemember)
at LightweightInstaller.ShortcutAction.DoAsync(CancellationToken cancelToken)
at LightweightInstaller.InstallWorkflow.d__19.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at LightweightInstaller.InstallWorkflow.d__18.MoveNext()

Any tips as to how to get installed?

NOTE: I AM using a Windows insider build so this COULD be caused by a bug in that stack

I’m having the same issue. Did you find a solution? Thanks!

Same error here!

Docker shows me a message in order to update Docker. After witing for download and unpacking stuff appear this error:

   at System.Runtime.InteropServices.ComTypes.IPersistFile.Save(String pszFileName, Boolean fRemember)
   at CommunityInstaller.ShortcutAction.DoAsync(CancellationToken cancelToken)
   at CommunityInstaller.InstallWorkflow.<HandleD4WPackage>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<ProcessAsync>d__23.MoveNext()```

And docker is no longer on my machine. Everythnig is deleted.

I still cannot install older versions, same error.

I installed an update and poof, and error like above was displayed and everything is gone, no docker, no installer, just gone.

I can download and install fresh, it kind of looks like it is working, but the system tray menu doesn’t work any more.

Here are the steps if you are trying like me with windows:

  1. Open Windows defender

  2. Disable Ransomeware protection

  3. Install Docker

  4. optional back Ransomeware protection