NSIS创建互斥,退出重复运行的程序

NSIS创建互斥,退出重复运行的程序
以下为示例脚本:
1  ! define MyMutex_Update      " MyMutex_Update "
2 
3 
4  Section
5      System::Call  ' kernel32::CreateMutexA(i 0, i 0, t "${MyMutex_Update}") i .r1 ?e '
6      Pop $R0
7      StrCmp $R0  0   + 2
8      Quit
9  SectionEnd


其他文章: http://blog.csdn.net/shemny/article/details/7575038

你可能感兴趣的:(NSIS创建互斥,退出重复运行的程序)