Google
      
发新话题
打印

[分享] NSIS卸载时判断软件是否运行

NSIS卸载时判断软件是否运行

如果是用在卸载时,完整的如下:
复制内容到剪贴板
代码:
  Function   un.onInit   
      FindProcDLL::FindProc   "你的程序.exe"   
      Pop   $0   
      IntCmp   $0   1   0   no_run   
      MessageBox   MB_ICONSTOP   "(你的程序)正在运行,请先关闭程序!"   
      Quit   
      no_run:   
  FunctionEnd

TOP

发新话题