|
|
#1 |
|
Member
Join Date: Apr 2003
Location: Austin, TX
Posts: 61
|
Need Help with Set and Release Mutex!
Can someone please assist with the proper way to call the createmutex API? What I am trying to do is to set a mutex flag while I am installing an update so that if my application is executed anytime during the update process, the application will not start until the mutex is released. An example would be great on how to do set the flag and remove it. Thanks
!define PATCHEXE "MutexTest.exe" Name "Mutex Test" OutFile "MutexTest.exe" SilentInstall silent Section "MainSection" System::Call 'kernel32::CreateMutex( s, b, s) i(.r0, FALSE, "{E27D1C1E-B4D8-4439-83B4-0173E03C5D11}") .r3' SectionEnd ; end the section |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|