: January-27-15 3:49 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] seeing if a MSI is running using mutex... [P]
Now I look closer, I think you're missing something. CreateMute() by itself
isn't sufficient. You have to attempt to get it. The code I've used also has
Classification: Public
So I presume a WAIT_ABANDONED means that a MSI is running?
-Original Message-
From: Phil Wilson [mailto:phildgwil...@gmail.com]
Sent: January-27-15 3:49 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] seeing if a MSI is running using mutex
Classification: Public
There was code from NetFxChainer.cpp (CreateNetFxChainer):
hr = StrAllocFormatted(sczName, L%ls_mutex, wzEventName);
ExitOnFailure(hr, failed to allocate memory for mutex name);
// Create the mutex, we initially own
pChainer-hMutex = ::CreateMutex(NULL, TRUE,
Now I look closer, I think you're missing something. CreateMute() by
itself isn't sufficient. You have to attempt to get it. The code I've
used also has a WaitForSingleObject to try to own the mutex:
hMutex = CreateMutex(sa, FALSE, TEXT(Global\_MSIExecute));
.
dwError =
4 matches
Mail list logo