I need to terminate a process prior to installation. I found result = System.TerminateProcess(); which also need result = System.EnumerateProcesses(); but the documentation on using them is not sufficient. For example, EnumerateProcesses returns a table but I can not figure out how to iterate it and find the ProcessID of the Executable I am looking for.
Has anyone used those commands in a script and if so, could you share some sample code?

Reply With Quote
