'Is there a way to fix or reinstall Docker Desktop after deleting files in the Docker directory?

I am new to Docker (just about a week) and am trying to get Docker Desktop 3.3.1 to work. I foolishly deleted some files in the Docker directory, and now cannot uninstall the application. I have stopped it and unregistered it using wsl, but when I go to the Apps & features Settings window and click Uninstall, it just hangs with a blank Uninstall window. However, when I try to reinstall Docker Desktop 3.3.1, I get the following message: "Existing installation is up to date" but still see the empty C:\Program Files\Docker\Docker directory.

I tried to delete the registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Docker Desktop but I get *"Cannot delete Docker Desktop: Error while deleting key."

Is there a "fix" I can download to repair this installation, or is there a way to keep the uninstallation from "hanging"? Since I can't do anything with Docker Desktop until this is fixed, I am using Docker for Windows. I am not sure that Docker for Windows has the capabilities and features I need. I would appreciate any help I can get. Apps & features window Uninstall window Docker Directory



Solution 1:[1]

There was a key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall called “Docker for Windows.” I deleted it and all of its sub-keys and the installation then went to completion.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sridhar Raju