Пример #1
0
        /// <summary>Called when a related MSI package has been detected for a package.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectRelatedMsiPackage(Wix.DetectRelatedMsiPackageEventArgs args)
        {
            LogVerbose("Enter Method: OnDetectRelatedMsiPackage");
            WPFBootstrapperEventArgs <Wix.DetectRelatedMsiPackageEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectRelatedMsiPackageEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnDetectRelatedMsiPackage(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectRelatedMsiPackage(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnDetectRelatedMsiPackage");
        }
        /// <summary>Called when a related MSI package has been detected for a package.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnDetectRelatedMsiPackage(Wix.DetectRelatedMsiPackageEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "DetectRelatedMsiPackage");
            WPFBootstrapperEventArgs <Wix.DetectRelatedMsiPackageEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectRelatedMsiPackageEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnDetectRelatedMsiPackage(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectRelatedMsiPackage(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "DetectRelatedMsiPackage");
        }
Пример #3
0
        public void SetInstallEntry(DetectRelatedMsiPackageEventArgs e)
        {
            if (e.Operation != RelatedOperation.MajorUpgrade)
                return;

            Logger.Standard("setting install entries for {0}", e.PackageId);
            SetInstallEntries(e.PackageId, "Updating {0}",
                "It may take a minute or two to finish updating {0}");
        }
Пример #4
0
 void DetectRelatedMsiPackageHandler(object sender, DetectRelatedMsiPackageEventArgs e)
 {
     BaseModel.SetInstallEntry(e);
     Logger.Standard("Detect related package {0} {1}", e.PackageId, e.Operation);
 }
Пример #5
0
        Result IBootstrapperApplication.OnDetectRelatedMsiPackage(string wzPackageId, string wzProductCode, bool fPerMachine, long version, RelatedOperation operation)
        {
            DetectRelatedMsiPackageEventArgs args = new DetectRelatedMsiPackageEventArgs(wzPackageId, wzProductCode, fPerMachine, version, operation);
            this.OnDetectRelatedMsiPackage(args);

            return args.Result;
        }
Пример #6
0
 /// <summary>
 /// Called when a related MSI package has been detected for a package.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnDetectRelatedMsiPackage(DetectRelatedMsiPackageEventArgs args)
 {
     EventHandler<DetectRelatedMsiPackageEventArgs> handler = this.DetectRelatedMsiPackage;
     if (null != handler)
     {
         handler(this, args);
     }
 }