+ Reply to Thread
Results 1 to 8 of 8

Thread: How do I running process using process Id or process name and kill it

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default How do I running process using process Id or process name and kill it

    Hello,

    In our product we do have one requirement in validation phase to find a process using process id or process name(sometimes we need to use id and sometime name) and then kill it, I tried Detect Active Application but it was returning 603 always, can you please help us?


    Other question:
    I have attached simple project to check if IE is running or not, i tried with other apps as well it is always returns 603, am I doing wrong somewhere?

    CheckAppRunning.zip


    Thanks in advance!!

    Excuse me for the typing mistakes.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,227

    Default Re: How do I running process using process Id or process name and kill it

    Hello,

    I have created a simple demo project. It detects if SB10.EXE (the SetupBuilder IDE) is active. Please compile:

    https://www.setupbuilder.com/project...b10_active.zip

    Does this help?

    Friedrich

  3. #3
    Join Date
    Mar 2004
    Posts
    4,227

    Default Re: How do I running process using process Id or process name and kill it

    See attached screenshot. I have compiled your original .sbp file. It reports that IE is running (in a LOOP until I end IE).

    Friedrich
    Attached Images Attached Images  

  4. #4
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I running process using process Id or process name and kill it

    Hello,

    I can see that on your machine the project for IE is running properly, but on my machine it always returns 603. I tried your project to check sb10.exe is running or not, even that is always saying sb10.exe is not running. please find attachment. is there something I am doing wrong? is there something related to OS(I am having win10)?

    Name:  Annotation 2020-09-03 180409.png
Views: 137
Size:  59.3 KB

    Thanks

  5. #5
    Join Date
    Mar 2004
    Posts
    4,227

    Default Re: How do I running process using process Id or process name and kill it

    Hello,

    to be honest, I have no idea. The return value comes directly from Windows. There is absolutely nothing we can do here (or even try to fix it) because it is native Windows functionality. What kind of Windows version is this? Windows 10 #2004?

    I have uploaded a modified test app. What does it return on your machine?

    https://www.setupbuilder.com/project...10_active2.zip

    Friedrich

  6. #6
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How do I running process using process Id or process name and kill it

    Hello,

    Tried your given exe it returns 603, please see attachment. which windows native functionality is used by Detect application, so that ill try to find about that why this is happening on my machine.

    Name:  a.png
Views: 133
Size:  20.1 KB
    Name:  Annotation 2020-09-03 180409.png
Views: 132
Size:  59.3 KB

    Thanks

  7. #7
    Join Date
    Mar 2004
    Posts
    4,227

    Default Re: How do I running process using process Id or process name and kill it

    Fixed one minute ago. I had access to a machine via TeamViewer and reproduced the issue. It's related to a specific Windows (update) patch level. More info soon.

    Friedrich

  8. #8
    Join Date
    Mar 2004
    Posts
    4,227

    Default Re: How do I running process using process Id or process name and kill it

    This should work fine now on your specific machine:

    https://www.setupbuilder.com/project...active_new.zip

    If you are interested, please send your e-mail address to support [at] lindersoft [dot] com and we'll send you the new compiler component (only 5 KB).

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •