Archive: Running Application


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


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

Use the FindProc plugin to detect if App1.exe is running. If it is, then Abort the installation.