Unistalling an application using wmic c#
Stopwatch watch = new Stopwatch();
watch.Start();
Process ProcessA = new Process();
ProcessA.StartInfo.UseShellExecute = false;
ProcessA.StartInfo.CreateNoWindow = true;
ProcessA.StartInfo.RedirectStandardOutput = true;
ProcessA.StartInfo.FileName = "wmic";
ProcessA.StartInfo.Arguments = "product where name='O-SELECT x64 1.3' call uninstall /nointeractive";
ProcessA.Start();
string outputA = ProcessA.StandardOutput.ReadToEnd();
ProcessA.WaitForExit();
watch.Stop();
TimeSpa
n abc =watch.Elapsed;↑
No comments:
Post a Comment