NSIS杀死进程(包括多个)

来源:互联网 发布:知乎有名的富二代 编辑:程序博客网 时间:2024/06/05 09:05


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

原创粉丝点击