Install finishes but leaves app hanging (without restart)

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.

It looks like the solution was to toss everything into the Application class's "Startup" event and then catch the "ClosingAborted" event from the AutomaticUpdater control.

Initializing that window in the app's constructor effectively disabled the 'Startup' event (this was where I had some initializing logic) whenever that ClosingForInstall property was true.