Changeset 2773


Ignore:
Timestamp:
7/3/2012 5:17:19 AM (2 years ago)
Author:
lowjoel
Message:

Instead of quitting only when the user presses OK on the UAC prompt, we will just bring our process down anyway. This should help prevent some race conditions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/EraserService/Eraser/MainForm.cs

    r2772 r2773  
    585585            adminEraser.StartInfo.UseShellExecute = true; 
    586586            adminEraser.StartInfo.Verb = "runas"; 
    587             if (adminEraser.Start()) 
    588             { 
    589                 Program.eraserClient.Exit(); 
    590                 Application.Exit(); 
    591             } 
     587 
     588            Program.eraserClient.Exit(); 
     589            try 
     590            { 
     591                adminEraser.Start(); 
     592            } 
     593            catch (Win32Exception) 
     594            { 
     595            } 
     596             
     597            Application.Exit(); 
    592598        } 
    593599    } 
Note: See TracChangeset for help on using the changeset viewer.