Var loop_count
loop:
IntOp $loop_count $loop_count + 1
Sleep 1000
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
Pop $0
StrCmp $0 "0" +3 +1
IntCmp $loop_count 10 +1 loop +1
Quit
Checking if mutex-object exists does not work in a loop
My installer does a mutex check within a loop but the problem is, that if I close the program which created this mutex first the installer still thinks it is running. But it isn't. How can I solve this?