Processes plug-in: Difference between revisions
(All download links are down!) |
(Since all downloadable links are down, the URLs and emails were converted to a non-spammy, non-hotlinking version.) |
||
Line 25: | Line 25: | ||
; Author: | ; Author: | ||
: Andrei Ciubotaru [Hardwired] | : Andrei Ciubotaru [Hardwired] | ||
: President of Inocentric SRL ([ | : President of Inocentric SRL ([hxxp://www.inocentric.com/ hxxp://www.inocentric.com/]) | ||
: [ | : [hardwired AT inocentric.com hardwired AT inocentric.com] | ||
: Project Manager ICode&Ideas SRL ([ | : Project Manager ICode&Ideas SRL ([hxxp://www.icode.ro/ hxxp://www.icode.ro/]) | ||
: [mailto:hardwired | : [mailto:hardwired AT icode.ro hardwired AT icode.ro] | ||
== Introduction == | == Introduction == |
Revision as of 06:45, 27 February 2012
Author: hardwired (talk, contrib) |
Links
Plugin + C++ Source Code:
NO DOWNLOADS AVAILABLE ANYMORE!
All known links to downloadable packages are down.
Description
- Version
- 1.0.1.0
- Release
- 24.february.2005
- Description
- Nullsoft Installer (NSIS) plug-in for managing?! processes.
- Copyright
- © 2004-2005 Hardwired. No rights reserved.
- There is no restriction for using this software...
- ...no guarantee either!
- Author
- Andrei Ciubotaru [Hardwired]
- President of Inocentric SRL ([hxxp://www.inocentric.com/ hxxp://www.inocentric.com/])
- [hardwired AT inocentric.com hardwired AT inocentric.com]
- Project Manager ICode&Ideas SRL ([hxxp://www.icode.ro/ hxxp://www.icode.ro/])
- AT icode.ro hardwired AT icode.ro
Introduction
The Need For Plug-in - I need it for the one of my installers.
Briefly: Use it when you need to find\kill a process when installing\uninstalling some application. Also, use it when you need to test the presence of a device driver.
Support
Supported platforms are: WinNT,Win2K,WinXP and Win2003 Server.
DLL Functions
Processes::FindProcess "process_name"
Searches the currently running processes for the given process name.
return on $R0:
- 1 - the process was found
- 0 - the process was not found
Processes::KillProcess "process_name"
Searches the currently running processes for the given process name. If the process is found then the it gets killed.
return on $R0:
- 1 - the process was found and killed
- 0 - the process was not found or the process cannot be killed (insufficient rights)
Processes::FindDevice "device_base_name"
Searches the installed devices drivers for the given device base name(important: I said BASE NAME not FILENAME).
return on $R0:
- 1 - the device driver was found
- 0 - the device driver was not found
Usage
First of all, does not matter where you use it. Of course, the routines must be called inside of a Section/Function scope.
Processes::FindProcess "process_name" ;without ".exe" StrCmp $R0 "1" make_my_day noooooo make_my_day: ... ;; noooooo: ... Processes::KillProcess "process_name" ;without ".exe" StrCmp $R0 "1" dead_meat why_wont_you_die dead_meat: ... why_wont_you_die: ... Processes::FindDevice "device_base_name" StrCmp $R0 "1" blabla more_blabla blabla: ... more_blabla: ...
Thanks
Sunil Kamath for inspiring me. I wanted to use its FindProcDLL but my requirements made it imposible.
Nullsoft for creating this very powerful installer. One big, free and full-featured (hmmm... and guiless for the moment) mean install machine!:)
One more thing...
If you use the plugin or its source-code, I would be appreciated if my name is mentioned.