I'd like to use 7.0's CloseApplication predefined action, but I"m not sure what it does.
The manual says it *basically* sends WM_CLOSE to all windows created by the app. What else does it do?
Normally you close an app by closing its main window. Does the custom action send WM_CLOSE to the exe's main window first? Does it then wait for that window to close before querying for more windows? Or Is there a way to limit the action to send WM_CLOSE to only the main window?
I don't like the idea of sending WM_CLOSE to windows in random order, since such actions may trigger app code, or worse, cause exceptions if certain windows are meant to always be alive while the app is running.
Also, does CloseApplication finally terminate the process in case the app does not close? My suggestion would be for it not to terminate the process, and leave it to the developer to add a TerminateProcess action afterwards as a catch-all, if desired.
FOLLOW US
Get the latest news in Application Packaging