Archive: NSIS Kill all users Processes


NSIS Kill all users Processes
Is it possible when uninstalling my application i kill all users machine processes?


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


I suppose killing all processes may be really dangerous!
It may crash your system!


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.


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 :p


Also have a look at the "LockedList" plug-in:
http://nsis.sourceforge.net/LockedList_plug-in