Sometimes windows client may not be uninstalled cleanly. When check windows control panel, Application Features, do not see the windows client listed there. However, when run the windows client .exe installer, instead of Installing, it shows Upgrading and hits error 'failed to invoke command'.
When hit the error, follow the steps here to fix:
. Open Windows Services
Check whether you still see the service GladFileMonSvc and gladrmountsvc.
. If so, open command prompt as Administrator. Run
sc delete <service name>
to delete the service.
For example, to delete GladFileMonSvc, run
sc delete GladFileMonSvc
After that, re-run the windows client installer.