示例#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...
            }
        }
示例#2
0
 protected override void OnDetectComplete(DetectCompleteEventArgs args)
 {
     this.result = args.Status;
     if (Hresult.Succeeded(this.result))
     {
         this.Engine.Plan(this.action);
     }
     else
     {
         this.wait.Set();
     }
 }
示例#3
0
 protected override void OnPlanComplete(PlanCompleteEventArgs args)
 {
     this.result = args.Status;
     if (Hresult.Succeeded(this.result))
     {
         this.Engine.Apply(IntPtr.Zero);
     }
     else
     {
         this.wait.Set();
     }
 }
示例#4
0
        protected override void OnDetectComplete(DetectCompleteEventArgs args)
        {
            this.result = args.Status;

            if (Hresult.Succeeded(this.result) && (this.UpdateAvailable | (!((LaunchAction.UpdateReplaceEmbedded == this.action) | (LaunchAction.UpdateReplace == this.action)))))
            {
                this.Engine.Plan(this.action);
            }
            else
            {
                this.wait.Set();
            }
        }