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;
        }
Esempio n. 2
0
 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;
 }