Prev Previous Post   Next Post Next
Old 16th April 2003, 17:38   #1
billym
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
billym is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump