You can try
GetProcessesByName[
^] - if I read this correctly, simply pass it your application name...but you'll need to test this.
Try this:
Process proc = Process.Start("your_installer_b.msi");
proc.WaitForExit();
MessageBox.Show("Installation B finished.");
Event based wait[
^]:
Process proc = Process.Start("your_installer_b.msi");
proc.EnableRaisingEvents = True
proc.ProcessExited += your_handler;
If this helps, please take time to accept the solution. Thank you.