Feature Request - Deploy - Add Condition to test for running/not running Process

2

It would be nice if there was an option to test for a process that is running or not running in a step.

Cancel
login to comment
2

Hey, thanks for the suggestion! We'll note that internally.

In the mean time, you can accomplish this with a command or PowerShell step!

This Example will stop a package from continuing if it finds the named process, chrome in this case. I have 11 as a success code, and if the script doesn't find the named process it exits with 11 and the package continues as successful.

Stop if Process Found Running

$Processes = Get-Process
if ( $Processes.ProcessName -contains "chrome" ) {
    Write-Output "Process Found - stopping"
    Exit 22
} Else {
    Write-Output "Process Not Found"
    Exit 11
}
Cancel
login to comment

Reply