[wix-devs] util:CloseApplication and multiple instances...

Hoover, Jacob Jacob.Hoover at greenheck.com
Mon Dec 2 14:36:02 PST 2019


I am thinking just a @Directory, so that if I support multiple flavors of my application I can only close the ones that really need closing.

I could see a similar benefit for any application that can be hosted in say, Tomcat where the exe names don't change but can be installed per application.

-----Original Message-----
From: Bob Arnson [mailto:bob at firegiant.com] 
Sent: Monday, December 2, 2019 4:31 PM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Cc: Hoover, Jacob <Jacob.Hoover at greenheck.com>
Subject: RE: util:CloseApplication and multiple instances...

Looks awkward but +1.

-----Original Message-----
From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of Hoover, Jacob via wix-devs
Sent: Monday, 2 December, 2019 15:59
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Cc: Hoover, Jacob <Jacob.Hoover at greenheck.com>
Subject: [wix-devs] util:CloseApplication and multiple instances...

Random thought after a week of being fat and happy...

The current behavior of util:CloseApplication only keys off of the process name.  Would anyone be at all interested in an addition to the current behavior of also specifying a directory that the exe must be located in?

It doesn't look like it would be too hard to tweak the existing behavior, with ProcFindAllIdsFromExeName in proc2util.h and https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/ns-tlhelp32-processentry32w .

Thanks,
Jacob

____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.



More information about the wix-devs mailing list