Re: [WiX-users] seeing if a MSI is running using mutex... [P]

2015-01-28 Thread Phil Wilson
: 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

Re: [WiX-users] seeing if a MSI is running using mutex... [P]

2015-01-28 Thread Steven Ogilvie
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

Re: [WiX-users] seeing if a MSI is running using mutex... [P]

2015-01-27 Thread Steven Ogilvie
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,

Re: [WiX-users] seeing if a MSI is running using mutex... [P]

2015-01-27 Thread Phil Wilson
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 =