Esempio n. 1
0
 /// <summary>
 /// Executes the Update service
 /// </summary>
 private void updateService()
 {
     Utils util = new Utils();
     try
     {
         var proc = new ProcessStartInfo();
         proc.UseShellExecute = true;
         proc.WorkingDirectory = util.getPfPath();
         proc.FileName = util.getPfPath() + "\\open-audit-update-service.exe";
         proc.Verb = "runas";
         Process.Start(proc);
     }
     catch (Exception e)
     {
         util.writeEventLog(e.Message);
         util.writeEventLog(e.StackTrace);
     }
 }