I am installing some windows update via c# code block using following code.

```
Process myProcess = new Process();

myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName = ConfigurationManager.AppSettings["DownloadedPath"];
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start(); 

myProcess.WaitForExit();

```

Now i am afraid that if the update which is there in ConfigurationManager.AppSettings["DownloadedPath"] path will install properly or not.

If this update threw any exception while installing software how can i handle it in c#?