1. 程式人生 > >NSIS殺死程序(包括多個)

NSIS殺死程序(包括多個)



Section test

    ;外掛呼叫示例
     killer::IsProcessRunning "AAA.exe"
     Pop $R0
   StrCpy $R1 "$R0"
   StrCmp $R1 "0" Start
    killer::KillProcess "AAA.exe"

    Start:
     killer::IsProcessRunning "BBB.exe"
     Pop $R0
   StrCpy $R1 "$R0"
   StrCmp $R1 "0" Stop
  
   killer::KillProcess "BBB.exe"
   Goto Start

    Stop:

SectionEnd