Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Runn apps and close them on exit (http://forums.winamp.com/showthread.php?t=267020)

G.Schuster 3rd March 2007 10:51

Runn apps and get process ID
 
Hello,

Changed the topic and my post - thinks this should be easier to answer.

How can I call an external .exe and get the process ID it is running under?
I would like to do something of this kinde:
Exec "C:\myapp\doit.exe"
Pop $processID
; do something else...
; on installer-exit:
KillProcess $processID

Thanks in advance!

Red Wine 4th March 2007 13:53

If running application has window title and/or window class, you may use this function.
Also check FCT plugin and nsProcess plugin.

G.Schuster 4th March 2007 18:52

Thank you so far, I will look into this.
But isn't there any "internal" variable/function that holds the procesid for processes started by Exec?


All times are GMT. The time now is 04:14.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.