private void ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (this) { this.Message = e.Message; e.Result = this.root.Canceled ? Result.Cancel : Result.Ok; } }
private void SetupApplication_ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { if (e.MessageType == Microsoft.Tools.WindowsInstallerXml.Bootstrapper.InstallMessage.ActionStart && !string.IsNullOrWhiteSpace(e.Message) && e.Data.Count > 1) { this.wizardWindowVM.SetProgressStatus(e.Data[1]); } }
private void BootstrapperApplication_ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (this) { if (e.MessageType == InstallMessage.ActionStart) { this.Message = e.Message; } } }
protected override void OnExecuteMsiMessage(ExecuteMsiMessageEventArgs args) { this.Log("OnExecuteMsiMessage() - MessageType: {0}, Message: {1}, Data: '{2}'", args.MessageType, args.Message, String.Join("','", args.Data.ToArray())); if (!String.IsNullOrEmpty(this.cancelExecuteActionName) && args.MessageType == InstallMessage.ActionStart && args.Data.Count > 0 && args.Data[0] == this.cancelExecuteActionName) { this.Log("OnExecuteMsiMessage(cancelNextProgress)"); this.cancelExecuteAtProgress = 0; } }
private void ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (_lock) { if (e.MessageType == InstallMessage.ActionStart && e.Data != null && e.Data.Count > 1 && !string.IsNullOrWhiteSpace(e.Data[1])) { Message = e.Data[1]; } e.Result = Canceled ? Result.Cancel : Result.Ok; } }
private void ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (this) { if (e.MessageType == InstallMessage.ActionStart) { this.Message = e.Message; } e.Result = Canceled ? Result.Cancel : Result.Ok; } }
private void Bootstrapper_ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { switch (e.MessageType) { case InstallMessage.ActionStart: PackageAction = e.Data.LastOrDefault(); break; case InstallMessage.ActionData: PackageAction = e.Data.FirstOrDefault(); break; default: break; } HandleCancellation(e); }
void OnExecuteMessage(object sender, ExecuteMsiMessageEventArgs e) { string eMessage = string.Empty; switch (e.MessageType) { case InstallMessage.ActionStart: ActionStartMessage message = (ActionStartMessage)ParseMessage(e.Message, e.MessageType); ActionStartEventArgs eventArgs = new ActionStartEventArgs(); eventArgs.DateRun = message.DateRun; eventArgs.Message = message.Message; eventArgs.Name = message.Name; eMessage = message.Name + ":" + message.Message; break; default: eMessage = e.Message; break; } this.Status = eMessage; }
private void Bootstrapper_ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { if (e.Message != null && e.MessageType == InstallMessage.Warning) { MessageId flag; var fields = e.Data.ToList(); if (fields.Count >= 1 && Enum.TryParse(fields[0], out flag)) { switch (flag) { case MessageId.Progress: if (fields.Count == 3) { this.Invoke((MethodInvoker) delegate { int progress = 0; if (Int32.TryParse(fields[2], out progress)) { this.label4.Text = fields[1]; this.progress.Value = (int)((double)progress / (double)totalActions * 100.0); } }); } break; case MessageId.MessageBox: if (fields.Count == 2) { MessageBox.Show(this, fields[1]); } break; } } } }
private void OnExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (_lock) { if (e.Data != null && e.Data.Count > 1 && !string.IsNullOrWhiteSpace(e.Data[1])) { ComponentMessage = e.Data[1]; } if (e.MessageType == InstallMessage.ActionStart) { ComponentMessage = e.Message; } if (string.IsNullOrEmpty(ComponentMessage)) { ComponentMessage = e.PackageId; } ComponentMessageAction = "Executing:"; e.Result = _mainVmFactory.GetViewModelInstance().Cancelled ? Result.Cancel : Result.Ok; } }
/// Fired when Windows Installer sends an installation message. static void OnExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { Logger.Instance.Trace(""); }
private void Bootstrapper_ExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { HandleCancellation(e); }
private void ExecuteMsiMessage(ExecuteMsiMessageEventArgs eventArgs) { // IDK handle messages from MSI files }