Automatic updater prevents windows from shutting down
Posted: Fri Dec 23, 2011 8:00 am
I thought this was discussed here before, but I spent some time searching this forum and the internet.
The problem is as follows:
The automatic update mechanism finds an update.
The user doesn't respond to it. It doesn't matter if the dialog is minimized or not. The dialog that is active at this time is update_notify_download.
In the evening, the user shuts down the computer.
But the InstallAware update checker prevents Windows from shutting down, and Windows presents the same "1 program still needs to close" as when there is unsaved work in some office program.
Since we configured the update mechanism to check for updates every day, there's no incentive to not let the user shut down his computer.
I think the behavior comes from not handling the WM_QUERYENDSESSION windows message or handling it improperly.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Is there anything I can do to get the correct behavior?
Rgds
Richard
The problem is as follows:
The automatic update mechanism finds an update.
The user doesn't respond to it. It doesn't matter if the dialog is minimized or not. The dialog that is active at this time is update_notify_download.
In the evening, the user shuts down the computer.
But the InstallAware update checker prevents Windows from shutting down, and Windows presents the same "1 program still needs to close" as when there is unsaved work in some office program.
Since we configured the update mechanism to check for updates every day, there's no incentive to not let the user shut down his computer.
I think the behavior comes from not handling the WM_QUERYENDSESSION windows message or handling it improperly.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Is there anything I can do to get the correct behavior?
Rgds
Richard