/// <summary>Called when a package was not detected but a package using the same provider key was.</summary>
        /// <param name="args">Additional arguments for this event.</param>
        protected override void OnDetectCompatiblePackage(Wix.DetectCompatiblePackageEventArgs args)
        {
            LogVerbose("Enter Method: OnDetectCompatiblePackage");
            WPFBootstrapperEventArgs <Wix.DetectCompatiblePackageEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectCompatiblePackageEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnDetectCompatiblePackage(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectCompatiblePackage(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnDetectCompatiblePackage");
        }
        /// <summary>Called when a package was not detected but a package using the same provider key was.</summary>
        /// <param name="args">Additional arguments for this event.</param>
        protected override void OnDetectCompatiblePackage(Wix.DetectCompatiblePackageEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "DetectCompatiblePackage");
            WPFBootstrapperEventArgs <Wix.DetectCompatiblePackageEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.DetectCompatiblePackageEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnDetectCompatiblePackage(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnDetectCompatiblePackage(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "DetectCompatiblePackage");
        }
Beispiel #3
0
 /// <summary>
 /// Called when a package was not detected but a package using the same provider key was.
 /// </summary>
 /// <param name="args">Additional arguments for this event.</param>
 protected virtual void OnDetectCompatiblePackage(DetectCompatiblePackageEventArgs args)
 {
     EventHandler<DetectCompatiblePackageEventArgs> handler = this.DetectCompatiblePackage;
     if (null != handler)
     {
         handler(this, args);
     }
 }
Beispiel #4
0
        Result IBootstrapperApplication.OnDetectCompatiblePackage(string wzPackageId, string wzCompatiblePackageId)
        {
            DetectCompatiblePackageEventArgs args = new DetectCompatiblePackageEventArgs(wzPackageId, wzCompatiblePackageId);
            this.OnDetectCompatiblePackage(args);

            return args.Result;
        }