Announcement

Collapse
No announcement yet.

nsProcess plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • nsProcess plugin

    Features:
    - Find/kill a process by name
    - Kill all processes with specified name (not only one)
    - The process name is case-insensitive
    - Win95/98/ME/NT/2000/XP support
    - Small plugin size (4,5 Kb)

    Source function FIND_PROC_BY_NAME based upon the Ravi Kochhar code
    Thanks iceman_k (FindProcDLL plugin) and
    DITMan (KillProcDLL plugin) for direct me


    "nsProcess" plugin v1.0
    Attached Files
    my functions

  • #2
    You just keep churning out the plugins. Good one.
    "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
    NSIS 3 POSIX Ninja
    Wiki Profile

    Comment


    • #3
      you just rock, man.
      this will revolutionize my installers

      maybe i should collect all the good plugins into a package on day, so everyone may download and setup them easily ...
      hand by comm@nder21
      ----------
      WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility

      Comment


      • #4
        Thanks
        my functions

        Comment


        • #5
          Good to see "Win95/98/ME" support, thanks man!
          "Just do it"

          Comment


          • #6
            you just rock, man.
            this will revolutionize my installers

            maybe i should collect all the good plugins into a package on day, so everyone may download and setup them easily ...
            Another good idea would be making function standards and to include those in a global header for easier and pratical use.
            My Wiki Pages

            Working now on:
            New projects. (language: any)

            Comment


            • #7
              ... and include this header file together with the plugins into the package ...
              hand by comm@nder21
              ----------
              WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility

              Comment


              • #8
                Fixed: removed CRT dependency (Windows 95 by default does not have msvcrt.dll)


                "nsProcess" plugin v1.1
                Attached Files
                my functions

                Comment


                • #9
                  Changed: Now plugin used header "nsProcess.nsh" for custom user variables and
                                better compile errors check.

                  Update from previous versions:
                           - Insert line in script:
                              !include "nsProcess.nsh"
                           - Replace:
                              nsProcess::FindProcess -> ${nsProcess::FindProcess} ...
                           - Replace:
                              .r0 -> $0, .r1 -> $1 ... .R0 -> $R0, .R1 -> $R1 ...

                  "nsProcess" plugin v1.2
                  Attached Files
                  my functions

                  Comment


                  • #10
                    About the code

                    What is the benefit of using PSAPI for WinNT/2000/XP? Shouldn't the Win95/98/ME method work just as fine in this case?

                    Edit: Never mind. It's the Toolhelp32.dll what Windows NT does not have.

                    Comment


                    • #11
                      Hmm in Win95/98/ME method the hSnapShot HANDLE leaves open if the process was found and bTerminate is FALSE.

                      Comment


                      • #12
                        Hmm in Win95/98/ME method the hSnapShot HANDLE leaves open if the process was found and bTerminate is FALSE.
                        You are right, fixed.
                        my functions

                        Comment


                        • #13
                          Fixed: removed memory leak.


                          "nsProcess" plugin v1.3
                          Attached Files
                          my functions

                          Comment


                          • #14
                            hmm I do not understand, can this plugin kill current open notepad ???

                            Is this able to find notepad that is currently running and kill it immediately ???

                            Comment


                            • #15
                              Originally posted by rxs2k5
                              hmm I do not understand, can this plugin kill current open notepad ???

                              Is this able to find notepad that is currently running and kill it immediately ???
                              Yes and yes.

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎