Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 3rd March 2007, 10:51   #1
G.Schuster
Junior Member
 
Join Date: Mar 2007
Posts: 5
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!

Last edited by G.Schuster; 3rd March 2007 at 11:45.
G.Schuster is offline   Reply With Quote
Old 4th March 2007, 13:53   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
If running application has window title and/or window class, you may use this function.
Also check FCT plugin and nsProcess plugin.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 4th March 2007, 18:52   #3
G.Schuster
Junior Member
 
Join Date: Mar 2007
Posts: 5
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?
G.Schuster is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump