When our installer getting failed, a rollback process is starting by default.
Because our installer involves Windows services, we use the Optional Rollback Script property to close and delete these services in case of a failure after their installation.
Our problem is that some processes remain assigned to some ports, a situation which leads the user to not be able to delete the installation directory without killing these ports first.
Now, in the command line, it's quite easy to locate and kill these processes with the commands:
netstat -ano | findstr :<portNumber>
taskkill /PID <processId> /F
My problem is that I'm not able to run these commands through the Run Script action, getting their processes id's and than close them. (not matter what, I cannot get the output back)
Is there any such a build-in option in the Installer? If not, is there any alternative way?