I'm currently having an issue that occurs after an update installs.
It appears as though the Automatic Updater control's IsClosingForInstall property is not reset right after an install. Here is a snippet of code to describe what I'm talking about:
In the App's constructor: updaterWindow = new UpdaterWindow(); autoUpdater = updaterWindow.autoUpdater; if (!autoUpdater.ClosingForInstall) { Log("The app is NOT closing for install!"); // Load stuff } else { Log("The app IS closing for install!"); }
Output:11/13/2012 10:56:07 AM: The app is NOT closing for install! // Initial run from an old update11/13/2012 10:56:24 AM: The app IS closing for install! // Run after an update became available11/13/2012 10:56:27 AM: The app IS closing for install! // Autoupdater closes an reopens app
This is problematic, because I rely on that property to see whether or not I should start the app. I know that my case may be slightly quirky because I'm placing the autoupdater in a dummy global window and initializing it at the start of the app - but I need this in order to catch that property early on (the control requires that it has a window as a parent).
Any help on this would be much appreciated.