Ejemplo n.º 1
0
 protected override void ProcessRecord()
 {
     foreach (DataRow row in CMPrograms.Get().Rows)
     {
         if (row["DisplayName"].ToString().Like(DisplayName) && row["DisplayVersion"].ToString().Like(DisplayVersion))
         {
             WriteObject(row);
         }
     }
 }
Ejemplo n.º 2
0
 protected override void ProcessRecord()
 {
     try
     {
         foreach (string uninstalled in CMPrograms.Uninstall(DisplayName, DisplayVersion, Arguments))
         {
             WriteObject("OK: Uinstalled " + DisplayName + " " + uninstalled);
         }
     }
     catch (Exception ex)
     {
         WriteObject("ERR: " + ex.Message.ToString());
     }
 }