static void Main ( )
{
#region runasadmin
ProcessStartInfo proc = new ProcessStartInfo ( );
proc.WindowStyle = ProcessWindowStyle.Normal;
proc.FileName = Application.ExecutablePath;
proc.CreateNoWindow = true;
proc.UseShellExecute = false;
//proc.Verb = "runas";
#endregion
Application.EnableVisualStyles ( );
Application.SetCompatibleTextRenderingDefault ( false );
Application.Run ( new TotalPSTRepair ( ) );
}
We use this code to run as admin purpose but while running, the .exe file still UAE prompt was not shown. I tried all possible ways like changing .manifest file and still it was not working. Please can anybody help me out with this issue?