UpdateControllerUpdateInteractive Method (ApplyUpdateOptions) |
Namespace: Kjs.AppLife.Update.Controller
Exception | Condition |
---|---|
InvalidOperationException | IsBusy is . |
ObjectDisposedException | The UpdateController has been disposed. |
This method combines the functionality of ShowCheckForUpdateDialog and ShowDownloadUpdateDialog and adds a step to automatically attempt to apply the update and display any error that occurs when doing so to the user.
This method displays a "Check for updates" dialog. If an update is found and the user chooses to get it, this method will automatically download it and display a progress dialog. If the download succeeds and is not cancelled by the user, this method will apply the update. If the update is successfully applied, the application will shut down.
If an exception is thrown during any of these steps, a message will be shown to the user. The user can click a button to view the message of the exception and any inner exceptions by clicking a "Show details" button.