Skip to content
⌘ NSIS Forum Archive

NSIS Kill all users Processes

6 posts

MarceloPires#

NSIS Kill all users Processes

Is it possible when uninstalling my application i kill all users machine processes?
Afrow UK#
What do you mean? All processes run under a particular user. To kill any process you need to be an administrator, i.e. you need RequestExecutionLevel admin and you need to check the user is an administrator with the UserInfo plug-in.

Stu
MarceloPires#
Thanks for the answers, i mean i want to kill just the processes with the name of my application (myapp.exe - user Admin), and as an administrator but i couldn't kill a process the belongs to another user(myapp.exe - user). I have administrator permission in my machine, and i'd like to kill a process of myapp.exe so that i could uninstall the application from all users that use it.
T.Slappy#
Aha.
To kill a process use plugin, try:
http://nsis.sourceforge.net/Processes_plug-in or http://nsis.sourceforge.net/KillProcDLL_plug-in but I did not try them personally 😛
LoRd_MuldeR#
Also have a look at the "LockedList" plug-in: