Sounds good but a couple of thoughts:

1.       I seem to remember find issues with the original implementation of 
CloseApplications with tray applications, might be worth making sure the new 
code doesn’t break anything (in my case it was a VB6 application!)

2.       What would happen if someone tried to kill a service? I can think of a 
good reason to do this but it might be worth checking the outcome.

Neil

From: Rob Mensching [mailto:r...@robmensching.com]
Sent: 20 February 2013 20:20
To: Windows Installer XML toolset developer mailing list
Subject: [WiX-devs] RFC: CloseApps extension enhancements.

I was using CloseApplications from the WixUtilExtension recently and found I 
needed a bit more functionality than what is currently present.

Here's what I'm thinking about adding:

1. Add "EndSessionMessage" and "ElevatedEndSessionMessage" attributes - this 
will more mimic the Restart Manager behavior where a WM_QUERYENDSESSION then 
WM_ENDSESSION is sent. Those messages seem to be more in vogue that sending a 
WM_CLOSE these days. I'm not planning to do it exactly like RM where all apps 
are sent a query message before sending the end session messages. I'm just 
going to do each message back to back (unless the query says don't try to end). 
I'm doing this because I found some apps that got unhappy being told to close. 
I'm not married to those attribute names.

2. Add "TerminateProcess" attribute - this will act similar to the existing 
RebootMessage attribute but kill the process instead of scheduling a restart. 
Killing processes is generally a bad thing but I've run into a couple customers 
now that say that is the correct way to close their process that has no window. 
I'm not married to that attribute name but "KillProcess" seemed a little 
aggressive. <smile/>

3. (if I have time) Add a "Timeout" attribute - this will allow each 
CloseApplication element to change the default wait when doing a close. Right 
now the default is hardcoded to 5 seconds which seems reasonable, but if I have 
time, I thought I'd allow it to be configurable.

Any questions, concerns, suggestions?
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to