Beispiel #1
0
        protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e)
        {
            this.Log("OnDetectUpdateComplete");

            // Failed to process an update, allow the existing bundle to still install.
            if (!Hresult.Succeeded(e.Status))
            {
                this.Log(String.Format("Failed to locate an update, status of 0x{0:X8}, updates disabled.", e.Status));
                e.IgnoreError = true; // But continue on...
            }
        }
Beispiel #2
0
 protected override void OnPlanComplete(PlanCompleteEventArgs args)
 {
     this.result = args.Status;
     if (Hresult.Succeeded(this.result))
     {
         this.Engine.Apply(this.windowHandle);
     }
     else
     {
         this.ShutdownUiThread();
     }
 }