1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
private void btnStartLP_Click(object sender, EventArgs e) { string curFile = @"C:/Program Files/App/app.exe"; MessageBox.Show((File.Exists(curFile) ? "Opening......" : "Please Install App \n from Install sets.")); btnStartLP.Enabled = false; if (File.Exists(curFile)) { var proc = new Process(); proc.StartInfo.FileName = "C:/Program Files/App/app.exe"; proc.Start(); proc.WaitForExit(); var exitCode = proc.ExitCode; proc.Close(); } }