The UpdateAvailable event is only called after checking for updates and only if you have UpdateType set to "CheckOnly". See: AutomaticUpdater Members.
Use the UpdateReadyToBeInstalled event. That's what you want.
Hi There,
In my Form's constructor, I have the following:
automaticUpdater.UpdateAvailable += AutomaticUpdaterOnUpdateAvailable; automaticUpdater.ForceCheckForUpdate();
----
private void AutomaticUpdaterOnUpdateAvailable(object sender, EventArgs eventArgs) { // TODO: why isnt this event called? MessageBox.Show("Updates have been downloaded and will install on the next start of this application, you should restart the application. (You can click the updater control in the upper right to do this).","Update available."); }
When starting the application I see it pull the update, but the message box never shows. Is there additional wiring required? I'm planning on calling InstallNow() in this handler to automate restarts, but it doesn't get called.
The UpdateAvailable event is only called after checking for updates and only if you have UpdateType set to "CheckOnly". See: AutomaticUpdater Members.
Use the UpdateReadyToBeInstalled event. That's what you want.