Archive: prevent multiple instances


prevent multiple instances


Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY

System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
Pop $R0

StrCmp $R0 0 +3
MessageBox MB_OK|MB_ICONEXCLAMATION $(AlreadyRun)
Abort
FunctionEnd

Why $(AlreadyRun) shown only on one language?

The multi-language codes don't work in .onInit. See also this thread:


thanks