mutex for multiple instance

For all your non-technical questions.
namo
Posts: 26
Joined: Thu Feb 07, 2008 6:05 am

mutex for multiple instance

Postby namo » Wed Mar 19, 2008 9:56 am

hi,

Could you please tell me , how to set the installer to not run multiple instances at the same time by using mutex.

i went by dll call to the CreateMutexA , WaitForSingleObject
but still i am unsuccessful
Multiple instances are still running

please help me for this

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Wed Mar 19, 2008 10:30 am

Please post support questions in the support forum. Thank you!
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

namo
Posts: 26
Joined: Thu Feb 07, 2008 6:05 am

Postby namo » Thu Mar 20, 2008 2:17 am

Hi,

I got the answer.
Thanks :D

~InstallAware Clipboard Data~
~End~
~{CE3BCDB4-3214-42BA-9D18-C5255EF92F3E}~
~Terminate Install~
~{6B8FFB90-2B3D-4FAF-8450-FBD52E7E1432}~
~MessageBox~
~{4E8506CC-B732-4FAD-B857-5DD95A6AFC6D}~
~~
~ONE INSTANCE IS ALREADY RUNNING~
~0~
~1~
~~
~If~
~{7AB1F905-0369-43BB-8F09-BB0386717D42}~
~AQUIREMUTEX~
~0~
~0~
~TRUE~
~MessageBox~
~{F9826040-6CA3-4AE9-AC4E-99278C89DDB6}~
~SVault~
~$AQUIREMUTEX$~
~0~
~1~
~~
~Call DLL Function~
~{AE2DEACB-896D-432E-97BC-81591760A3FF}~
~kernel32.dll,WaitForSingleObject,long,AQUIREMUTEX,long,$NEWINSTANCE$,long,-1,$~
~mIDEFunc.dll\\mEXEFunc.dll~
~Set Variable~
~{EF934A9A-0580-474F-9D54-1A1E93F1E833}~
~AQUIREMUTEX$MYAH$MYAH$FALSE~
~~
~MessageBox~
~{9A1DFA3F-7C25-4639-BCF1-D5DC9CE6F966}~
~~
~$NEWINSTANCE$~
~0~
~1~
~~
~Call DLL Function~
~{0EDCCA2D-7784-477D-9CD3-C933B88A3D4C}~
~Kernel32.dll,CreateMutexA,long,NEWINSTANCE,long,NULL,bool,FALSE,"pointer to string",$PRODUCTCODE$,$~
~mIDEFunc.dll\\mEXEFunc.dll~
~Set Variable~
~{1644B302-EBA5-49F2-BCF0-4D705DB52DD8}~
~NEWINSTANCE$MYAH$MYAH$FALSE~
~~
~Comment~
~{48DE5F1E-EC27-4314-9FEB-21A102060CCC}~
~check weather one installer version is already runinng~

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Thu Mar 20, 2008 8:04 am

Want to post that in Sample Scripts? :)
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

namo
Posts: 26
Joined: Thu Feb 07, 2008 6:05 am

Postby namo » Fri Mar 21, 2008 4:55 am

Hey,

why not, sure :lol:


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 21 guests