I'm trying to use CloseApplication with the EndSessionMessage option and am not 
experiencing the expected result.  By default in OnClose my application asks if 
the user is sure they want to close.  So I added handlers for 
WM_QUERYENDSESSION to return TRUE and WM_ENDSESSION to close the program 
without the prompt.  I know they work because they fire when I shutdown Windows 
with the application open.  But it is not working from CloseApplication.  If I 
use CloseMessage the prompt will pop up asking the user if they want to quit so 
messages must be able to get through, but with EndSessionMessage nothing.  For 
reference I'm using WiX 3.8.1128.0.

This is all I have for my element, am I missing something?
        <util:CloseApplication Id="closeMyApplication"
                               Target="myApplication.exe"
                               Timeout="30"
                               EndSessionMessage="yes"/>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to