Skip to content
⌘ NSIS Forum Archive

prevent multiple instances

3 posts

UVV#

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?