Closing a Windows Background application with NSIS

21 views Asked by At

I am currently trying to close all running processes on a server as admin, including those running in the background. It works great with my shell, but not with NSIS.

Maybe someone can help me.

Thank you very much!

At the moment I am using the following code lines:

ExecWait "Start-Process powershell.exe -Verb runAs"
ExecWait 'powershell Stop-Process -Name "${EXE_NAME}" -Force -Tree -verb RunAs'

But this only closes the local process and not all of them.

0

There are 0 answers