Seems to me like this code contains errors. The output of the system call is saved in $1, not in $R0 (which is later used for Pop and StrCmp). Am I right, or am I missing something?System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK "The installer is already running."
Abort
Bug in "Allow only one installer instance" sample?
One of the examples on the NSIS home page is Allow only one installer instance. This contains the following code snippet: