Changeset 2203


Ignore:
Timestamp:
Dec 13, 2010, 11:00:00 PM (11 years ago)
Author:
sauer
Message:

AutoUpdate:

  • Startmessagebox fix
  • CrypUpdater: improved finding of "left over" processes before update
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypUpdater/App.xaml.cs

    r2197 r2203  
    263263            try
    264264            {
    265                 foreach (Process p in Process.GetProcesses())
     265                Process[] p1 = Process.GetProcessesByName("CrypStartup");
     266                foreach (Process p in p1)
    266267                {
    267268                    if (Path.GetDirectoryName(p.MainModule.FileName) == cryptoolFolderPath)
     
    269270                }
    270271            }
    271             catch (Win32Exception)
     272            catch (Exception)
     273            {
     274                //32 bit updater cannot check for 64 bit processes
     275            }
     276
     277            try
     278            {
     279                Process[] p2 = Process.GetProcessesByName("CrypWin");
     280                foreach (Process p in p2)
     281                {
     282                    if (Path.GetDirectoryName(p.MainModule.FileName) == cryptoolFolderPath)
     283                        processList.Add(p);
     284                }
     285            }
     286            catch (Exception)
    272287            {
    273288                //32 bit updater cannot check for 64 bit processes
Note: See TracChangeset for help on using the changeset viewer.