Reputation: 2823
I get below error when try to install Docker Desktop for Windows 4.0.0
Component CommunityInstaller.ExecAction failed: Process InstallerCli.exe exited with code 1
at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__29.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.<DoProcessAsync>d__23.MoveNext()
Tried lower version (3.6.0
) as well, but same result.
Anyone has any idea?
Upvotes: 9
Views: 6800
Reputation: 761
I had the exact same error and for 5 days, I tried to fix it, removed docker files, reinstalled WSL2, everything.The solution I have found is fixing Windows Management Instrumentation (WMI) and for this open cmd in Administrative mod and:
CD C:\Windows\System32\WBEM && dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s
Worked like a charm in 4.23.0. Hope it solves for other people who experience the same problem. I wasted too much time on this.
Upvotes: 0
Reputation: 132
If you had Docker for Desktop installed before on your machine, the issue could be the security settings for the C:\ProgramData\DockerDesktop folder which blocks modifications (writes, updates and delete operations) for any user and application. Since it is an application (Docker Desktop Installer) which needs to use that folder, you need to let "TrustedInstallers" write and modify this folder. You might also need to give full access to Administrator and System users since you most likely are running Docker Desktop Installer as Admin.
Upvotes: 2
Reputation: 546
Deleting all Docker files in C:\ProgramData\ and C:\Program Files\ allowed me to install 4.6.0, before that I was getting the same error.
Upvotes: 0
Reputation: 4209
this happened to me also. Then, I also tried to install other versions, but it didn't work.
So, to fix this I just manually deleted the folders:
After this, docker 4.6.0 was installed successfully.
Upvotes: 7