I was trying to use nsExec for something similar:
I want to run the installation for the Java VM in my installer.
The thing is that the child process IS created, but then the setup for the JVM creates another process to continue the install, ending the original one.
I think that makes nsExec believe that the process which was monitoring ended (which is true).
How can I wait for the other process to finish before continuing with my installer?
Things I´ve tried:
- Keep asking if I can delete the setup file
in a loop
- Keep asking if the process is running in a loop
The last two are a bit (only a bit?
) unefficient (even with a "sleep" call) is there a more elegant solution?
Thanx for the answers.