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

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

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 Phil Wilson
gt; > -Original Message- > From: Phil Wilson [mailto:phildgwil...@gmail.com] > Sent: January-27-15 1:25 PM > To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] seeing if a MSI is running using mutex... > > I'll put it this way: I don't understan

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

2015-01-27 Thread Steven Ogilvie
iginal Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: January-27-15 1:25 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] seeing if a MSI is running using mutex... I'll put it this way: I don't understand why you're not passing the string

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

2015-01-27 Thread Phil Wilson
I'll put it this way: I don't understand why you're not passing the string LPCWSTR sczMutexName = L"Global\\_MSIExecute"; into CreateMutex(). Why the StrAllocFormatted call? Also it's only locked during the execute sequence, and I don't know how you're testing it. --- Phil Wilson O

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

2015-01-27 Thread StevenOgilvie
What is the actual MSI mutex? Thanks Steve From: Phil Wilson [via Windows Installer XML (WiX) toolset] Sent: Tuesday, January 27, 2015 12:59 To: StevenOgilvie Subject: Re: seeing if a MSI is running using mutex... It appears that your CreateMutex isn't passing in the actual MSI mutex in sczM

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

2015-01-27 Thread Phil Wilson
gt; From: StevenOgilvie [mailto:sogil...@msn.com] > Sent: Tuesday, January 27, 2015 7:51 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] seeing if a MSI is running using mutex... > > Hi all, > > Trying to create a method to detect if ANY MSI is running and if so ha

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

2015-01-27 Thread Phil Wilson
It appears that your CreateMutex isn't passing in the actual MSI mutex in sczMutexName . --- Phil Wilson On Tue, Jan 27, 2015 at 7:51 AM, StevenOgilvie wrote: > Hi all, > > Trying to create a method to detect if ANY MSI is running and if so halt > bootstrapper... > I am doing this in

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

2015-01-27 Thread Rob Mensching
] Sent: Tuesday, January 27, 2015 7:51 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] seeing if a MSI is running using mutex... Hi all, Trying to create a method to detect if ANY MSI is running and if so halt bootstrapper... I am doing this in C++ I get a successful mutex, but it

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

2015-01-27 Thread StevenOgilvie
Hi all, Trying to create a method to detect if ANY MSI is running and if so halt bootstrapper... I am doing this in C++ I get a successful mutex, but it always returns ERROR_SUCCESS, what am I doing wrong? thanks Steve HANDLE ghMutex = NULL; LPCWSTR sczVerifyMSIRunningVariableSet = L"0"; LPWST