Archive: to kill more process


to kill more process
Section "Kill"
KillProcDLL::KillProc "QQ.exe"
SectionEnd

User the above script,when setup is running,the process "QQ.exe" will be killed,but it can only kill one process.if there are 5 QQ.exes in the task manager,1 will be killed or the all?to kill all the processes of the same name,how to write the code?


You can call KillProc multiple times until it returns an error indicating the process was not found.