I'm writing a console app that detects USB drives, formats them, and then runs a program called UnetBootin to write an ISO to the drives. Everything works fine, but the issue is UNetbootin doesn't simply "exit" so .WaitForExit()
doesn't work unless the user clicks the "Exit" button.
The only way I can imagine to solve this is either by checking for that button to appear or trying to guess if the process is idling somehow. In either case, I wouldn't know where to start.