Hi,
I'm running the updater.exe from a java application at startup, but the updater returns immediatley after called, even though it is still running (seems to be asynchronous\non-blocking).
I use this code to execute the updater:
Process p = Runtime.getRuntime().exec("./updater.exe /silentall");
p.waitFor();
// at this point the process has returned but the updater is still running.
Command line also returns immediately when calling the updater.
The reason why I need this to be a blocking call is that our application needs to know that the updater is running so that it does not start another long running process whilst the updater is running; since the updater may need to stop the application.
Is there another way to find out that the updater is running? or can I call the updater in a certain way so that it does not return immediately?
Thank you,
Clive
FOLLOW US
Get the latest news in Application Packaging