/// <summary>Called when Windows Installer sends a file in use installation message.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnExecuteFilesInUse(Wix.ExecuteFilesInUseEventArgs args) { LogVerbose("Enter Method: OnExecuteFilesInUse"); WPFBootstrapperEventArgs <Wix.ExecuteFilesInUseEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecuteFilesInUseEventArgs>(args); TryInvoke(new Action(() => { _mainWindow.OnExecuteFilesInUse(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnExecuteFilesInUse(cancelArgs.Arguments); } LogVerbose("Leaving Method: OnExecuteFilesInUse"); }
/// <summary>Called when Windows Installer sends a file in use installation message.</summary> /// <param name="args">The arguments of the event.</param> protected override void OnExecuteFilesInUse(Wix.ExecuteFilesInUseEventArgs args) { this.LogBootstrapperEnterEvent(args, "ExecuteFilesInUse"); WPFBootstrapperEventArgs <Wix.ExecuteFilesInUseEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.ExecuteFilesInUseEventArgs>(args); this.TryInvoke(new Action(() => { this.model.OnExecuteFilesInUse(cancelArgs); })); if (!cancelArgs.Cancel) { base.OnExecuteFilesInUse(cancelArgs.Arguments); } this.LogBootstrapperLeaveEvent(null, "ExecuteFilesInUse"); }
Result IBootstrapperApplication.OnExecuteFilesInUse(string wzPackageId, int cFiles, string[] rgwzFiles) { ExecuteFilesInUseEventArgs args = new ExecuteFilesInUseEventArgs(wzPackageId, rgwzFiles); this.OnExecuteFilesInUse(args); return args.Result; }
/// <summary> /// Called when Windows Installer sends a file in use installation message. /// </summary> /// <param name="args">Additional arguments for this event.</param> protected virtual void OnExecuteFilesInUse(ExecuteFilesInUseEventArgs args) { EventHandler<ExecuteFilesInUseEventArgs> handler = this.ExecuteFilesInUse; if (null != handler) { handler(this, args); } }