|
|
#1 |
|
Junior Member
Join Date: Sep 2006
Posts: 2
|
Single installer instance
Hi,
Can anybody tell me how to restrict launch of installer if one instance is already running. Thanks in advance. Alok |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Sep 2006
Posts: 2
|
Got it.
Put the following code in your .onInit function: System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e' Pop $R0 StrCmp $R0 0 +3 MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running." Abort 'myMutex' should be replaced by a unique value. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: May 2005
Posts: 119
|
Search and the Wiki are your friend!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|