1. Yep. You can see that's exactly what I do now. The code is in wix38
branch.

2. There is basically no time between the calls. It is working great. I'm
really happy with the enhancements.


On Sat, Feb 23, 2013 at 6:32 AM, Wesley Manning <wmann...@dynagen.ca> wrote:

>  (1) This is what MSDN says: " The *WM_QUERYENDSESSION* message is sent
> when the user chooses to end the session or when an application calls one
> of the system shutdown functions. If any application returns zero, the
> session is not ended. The system stops sending *WM_QUERYENDSESSION*messages 
> as soon as one application returns zero.".  This
> is from
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa376890%28v=vs.85%29.aspx.
> So app returns 0 to prevent shutdown, although they recommend not to do
> this.   Since your purpose is just to shiutdown app I guess you would just
> ignore that.****
>
> ** **
>
> Are you passing ENDSESSION_CRITICAL and *ENDSESSION_CLOSEAPP* as the
> lparam?  This would give the app indication that it will be killed.  ****
>
> ** **
>
> (2) Probably does not matter.  I was just curious.  MSDN does say apps are
> to respond immediately.****
>
> ** **
>
> *From:* Rob Mensching [mailto:r...@robmensching.com]
> *Sent:* February 21, 2013 2:58 AM
>
> *To:* Windows Installer XML toolset developer mailing list
> *Subject:* Re: [WiX-devs] RFC: CloseApps extension enhancements.****
>
>  ** **
>
> 1. I do not think so based on what MSDN says.****
>
>  ****
>
> 2. The 5s I was talking about was between the attempt to close and the
> check to see if a restart or terminate is appropriate. I don't know that
> there will be any measurable time between the calls. Does it matter?****
>
> ** **
>
> On Wed, Feb 20, 2013 at 2:37 PM, Wesley Manning <wmann...@dynagen.ca>
> wrote:****
>
>  ****
>
> 1.       If application returns no on WM_QUERYENDSESSION then you
> wouldn't send WM_ENDSESSION?****
>
> 2.       How much time between WM_QUERYENDSESSION before calling
>  WM_ENDSESSION?  Is this the 5s you where talking about below?****
>
>  ****
>
> *From:* Rob Mensching [mailto:r...@robmensching.com]
> *Sent:* February 20, 2013 5:29 PM****
>
>
> *To:* Windows Installer XML toolset developer mailing list****
>
> *Subject:* Re: [WiX-devs] RFC: CloseApps extension enhancements.****
>
>  ****
>
> 1. The new code will be new code. If you don't use the new attributes
> nothing will change. I'm planning to to this in wix38 (should have
> mentioned that) so it must be backwards compatible.****
>
>  ****
>
> 2. The SCM will do whatever it is directed to do when the process crashes
> based on the service configuration. Getting killed looks nearly identical
> to crashing (I think your process ends with a different return code).****
>
>  ****
>
> On Wed, Feb 20, 2013 at 1:02 PM, Neil Sleightholm <n...@x2systems.com>
> wrote:****
>
> 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****
>
>  ****
>
>
>
> ------------------------------------------------------------------------------
> 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****
>
> ** **
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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