把下列代码放到你的 .onInit 函数:[code]
System::Call ‘kernel32::CreateMutexA(i 0, i 0, t “myMutex”) i .r1 ?e’
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION “安装程序已经在运行。”
Abort[/code]myMutex 应该替换为你自己的唯一标识值。
把下列代码放到你的 .onInit 函数:[code]
System::Call ‘kernel32::CreateMutexA(i 0, i 0, t “myMutex”) i .r1 ?e’
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION “安装程序已经在运行。”
Abort[/code]myMutex 应该替换为你自己的唯一标识值。