上一頁 | 目錄 | 下一頁
把下列代碼放到你的 .onInit 函數:
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
myMutex 應該替換為你自己的唯一標識值。