private void Bootstrapper_ExecuteProgress(object sender, ExecuteProgressEventArgs e) { executeProgress = e.OverallPercentage; ProgressPercentage = e.ProgressPercentage; UpdateProgress(); HandleCancellation(e); }
protected override void OnExecuteProgress(ExecuteProgressEventArgs e) { if (this._installer._canceled) { e.Result = WixToolset.Bootstrapper.Result.Cancel; } base.OnExecuteProgress(e); }
private void ExecuteProgress(object sender, ExecuteProgressEventArgs args) { this.PackageProgress = (ushort)args.ProgressPercentage; this.NotifyPropertyChanged(nameof(this.PackageProgress)); this.TotalProgress += (ushort)args.OverallPercentage; this.NotifyPropertyChanged(nameof(this.TotalProgress)); }
protected override void OnExecuteProgress(ExecuteProgressEventArgs args) { this.Log("OnExecuteProgress() - package: {0}, progress: {1}%, overall progress: {2}%", args.PackageId, args.ProgressPercentage, args.OverallPercentage); if (this.cancelExecuteAtProgress > 0 && this.cancelExecuteAtProgress <= args.ProgressPercentage) { args.Result = Result.Cancel; } else if (this.sleepDuringExecute > 0) { Thread.Sleep(this.sleepDuringExecute); } }
private void ApplyExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (this) { this.ExecuteProgress = e.OverallPercentage; if (ba.Command.Display == Display.Embedded) { ba.Engine.SendEmbeddedProgress(e.ProgressPercentage, this.Progress); } e.Result = this.Cancelled ? Result.Cancel : Result.Ok; } }
private void ApplyExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (this) { this.executeProgress = e.OverallPercentage; this.Progress = (this.cacheProgress + this.executeProgress) / 2; // always two phases if we hit execution. if (CustomBootstrapperApplication.Model.Command.Display == Display.Embedded) { CustomBootstrapperApplication.Model.Engine.SendEmbeddedProgress(e.ProgressPercentage, this.Progress); } e.Result = Canceled ? Result.Cancel : Result.Ok; } }
private void ApplyExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (this) { this.executeProgress = e.OverallPercentage; this.Progress = (this.cacheProgress + this.executeProgress) / 2; if (WixBA.Model.Command.Display == Display.Embedded) { WixBA.Model.Engine.SendEmbeddedProgress(e.ProgressPercentage, this.Progress); } e.Result = this.root.Canceled ? Result.Cancel : Result.Ok; } }
private void ExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (_lock) { _applyProgress = e.OverallPercentage; Progress = (_acquireProgress + _applyProgress) / 2; if (App.Current.Command.Display == Display.Embedded) { App.Current.Engine.SendEmbeddedProgress(e.ProgressPercentage, Progress); } e.Result = Canceled ? Result.Cancel : Result.Ok; } }
private void ExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (this) { executeProgress = e.OverallPercentage; Progress = (cacheProgress + executeProgress) / 2; if (BootstrapperProgram.Model.Command.Display == Display.Embedded) { BootstrapperProgram.Model.Engine.SendEmbeddedProgress(e.ProgressPercentage, Progress); } e.Result = Canceled ? Result.Cancel : Result.Ok; } }
private void ApplyExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (this) { this._executeProgress = e.OverallPercentage; this.Progress = (this._cacheProgress + this._executeProgress) / 2; IsProgressIndeterminate = false; if (BootstrapperModel.Instance.Bootstrapper.Command.Display == Display.Embedded) { BootstrapperModel.Instance.Bootstrapper.Engine.SendEmbeddedProgress(e.ProgressPercentage, this.Progress); } e.Result = Result.Ok; } }
private void OnExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (_lock) { _applyProgress = e.OverallPercentage; ComponentProgress = _applyProgress / _progressPhases; Progress = (_acquireProgress + _applyProgress) / _progressPhases; if (_installer.Command.Display == Display.Embedded) { _engine.SendEmbeddedProgress(e.ProgressPercentage, Progress); } e.Result = _mainVmFactory.GetViewModelInstance().Cancelled ? Result.Cancel : Result.Ok; } }
private void OnExecuteProgress(object sender, ExecuteProgressEventArgs e) { lock (this) { _executeProgress = e.OverallPercentage; Progress = (_cacheProgress + _executeProgress) / _progressPhases; if (_bootstrapper.Command.Display == Display.Embedded) { _bootstrapper.Engine.SendEmbeddedProgress(e.ProgressPercentage, Progress); } e.Result = _mainModel.Canceled ? Result.Cancel : Result.Ok; } }
private void SetupApplication_ExecuteProgress(object sender, ExecuteProgressEventArgs e) { string logName = "Engine hook SetupApplication_ExecuteProgress: "; if (this.cancelProgressRequested) { this.Log(logName + "Cancellation of running progress was requested!"); if (this.ShowCloseMessageMox() == MessageBoxResult.OK) { this.SetCancelledByUser(); e.Result = Result.Cancel; } this.CancelProgressRequested = false; } this.wizardWindowVM.SetProgressValue(e.OverallPercentage); }
private void Bootstrapper_ExecuteProgress(object sender, ExecuteProgressEventArgs e) { // If setup has failed, set the Result to Error to let Engine know // about the state. if (this.setupFailed) { e.Result = Result.Cancel; this.Invoke((MethodInvoker) delegate { this.label4.Text = BootstrapperResources.ProgressSetupFailedMessage; }); } else { this.Invoke((MethodInvoker) delegate { this.packageName = MsiPackages.MsiPackageMap[e.PackageId]; this.label4.Text = string.Format(ProgressStatus(), packageName); }); } }
/// Fired by the engine while executing on payload. void OnExecuteProgress(object sender, ExecuteProgressEventArgs e) { Logger.Instance.Trace("PackageId: " + e.PackageId + " " + e.ProgressPercentage + "/" + e.OverallPercentage); }
protected override void OnExecuteProgress(ExecuteProgressEventArgs e) { if (this._installer._canceled) { e.Result = WixToolset.Bootstrapper.Result.Cancel; } base.OnExecuteProgress(e); }