Hello,
Can anyone help me detect a process with Inno Setup?
Printable View
Hello,
Can anyone help me detect a process with Inno Setup?
Never mind.. found it... in the help file. :)
'Place in Declarations section:
Private Declare Function CreateMutex Lib "kernel32" _
Alias "CreateMutexA" _
(ByVal lpMutexAttributes As Long, _
ByVal bInitialOwner As Long, _
ByVal lpName As String) As Long
'Place in startup code (Form_Load or Sub Main):
CreateMutex 0&, 0&, "MyProgramsMutexName"
Example:
AppMutex=MyProgramsMutexName