skhatri
30th September 2005 08:08 UTC
Running Application
Hi All,
Say I want to write an installer for App1 application, which installs application files. I want to make sure that some exe file lets say : App1.exe is not running. If App1.exe is running , I want to Abort. Is it possible to create a MuteX variable ? How can I do this with script ?
Please help.
Thanks and regards,
Sunil.
hi_khatri@yahoo.com
glory_man
30th September 2005 11:47 UTC
Search the forum first. You will find example like this.
Function .onInit
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "App1") i .r1 ?e'
Pop $R0
StrCmp $R0 0 good
MessageBox MB_OK "Application is already runing"
Abort
good:
FunctionEnd
iceman_k
30th September 2005 14:16 UTC
Use the FindProc plugin to detect if App1.exe is running. If it is, then Abort the installation.