I ran an outside program that launched another program. I created a process for the launcher program and waited for that to exit, but what I need is to have it wait for the 2nd program to exit.
system.diagnost ics.process instApp = system.diagnost ics.process.sta rt("Setup.exe") ;
instApp.WaitFor Exit();
//code that is dependent upon the installation of the above program
Problem I'm having is that the Setup.exe extracts a few files for the installation process, then launches the actual installer. Once the actual installer is ran, my 'WaitForExit()' thinks it's over. Is there a way to wait for the Setup.exe and any program it launches to exit before executing the next line(s) of code?
Thank you in advance.
Jim
system.diagnost ics.process instApp = system.diagnost ics.process.sta rt("Setup.exe") ;
instApp.WaitFor Exit();
//code that is dependent upon the installation of the above program
Problem I'm having is that the Setup.exe extracts a few files for the installation process, then launches the actual installer. Once the actual installer is ran, my 'WaitForExit()' thinks it's over. Is there a way to wait for the Setup.exe and any program it launches to exit before executing the next line(s) of code?
Thank you in advance.
Jim
Comment