I want to install an MSI using process.start and below is the code I added.
try {
Process p = Process.Start("msiexec.exe", "/a D:\test.msi");
//msiexec.exe /a "D:\test.msi"
} catch(Exception Ex) {
//handle exception
}
I expected it to go to catch block if the msiexec command inside fails.
But looks like command execution status doesn't matter for Process.start.
How can I know if the command inside is successful or not?