I am including the Auto-Updater in my installer (Advanced Installer Professional 12.6.1). My WPF application is built using VS2015 targeting .NET 4.0 (but typically running under .NET 4.5.2 or higher). I tested this behavior on Windows 7 x64.
The auto-close feature does not appear to work if the application window has not been activated at least once before the update installs. If I click on the window before the update begins installing, then the auto-close appears to work fine.
The WM_CLOSE message does not appear to be received by my application unless the window is activated at least once. To confirm, I added a handler for WndProc and log when the WM_CLOSE message is received. If the window has been activated at least once (either by clicking on it or calling Window.Activate()), then the log shows WM_CLOSE was received. If the window has NOT been activated, then the WM_CLOSE message does not appear in the log before the update begins to install.
I also tried generating the update configuration file using both the "language specific codepage" and "UCS-2 encoding" settings, but the behavior was the same in both cases.
I can work around this by including a call to Window.Activate() before starting the updater process, but it would be nice if this wasn't necessary.
Thanks,
Brandon
FOLLOW US
Get the latest news in Application Packaging