When attempting to install the agent it fails with the following error in the installAgent.log file:
2023-09-12 13:29:41 | PreInstallCleanup | INFO | terminateAgentProcesses(): Error - Received invalid process ids
2023-09-12 13:29:44 | PreInstallCleanup | FINE | getPid(): service 'WDP' is not running.
2023-09-12 13:29:44 | PreInstallCleanup | INFO | terminateAgentProcesses(): Error - Received invalid process ids
2023-09-12 13:29:47 | PreInstallCleanup | WARNING | deleteAgentService( WDP ): OpenService() failed: Access is denied.
Release : 15.x 16.x
This can occur when the previous version of the agent was not uninstalled correctly and the security descriptors for the DLP services do not include the admin delete privileges.
Run the following from an Administrative command prompt to add the delete privileges to the service security descriptors:
sc sdset EDPA D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
sc sdset WDP D:(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
Then rerun the install.
If the issue persists try manually deleting the problem services with the command below:
sc delete EDPA
sc delete WDP