We faced a situation where the DWAgent client would not run and we could not uninstal or reinstall it.
The solution is to manually remove it before installing again.
This guide is for Windows 10
, it may work for other Windows versions as well.
%PROGRAMFILES%\DWAgent
Start a DOS prompt with administrator privileges > cmd
Then run this in it
sc delete dwagent
Be careful when editing the Windows Registry! It could break your system if you do something reckless
Open the Registry Editor > REGEDIT.EXE
Edit > Find (CTRL + F)
Delete any Key or Folder found with dwagent
in it
You can use F3 to continue the search with the same query
"Recent files" entries can be ignored (or deleted)
You may want to repeat the process deleting entries with dwservice
(I didn't need this here)