We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

clive_bor
Posts: 48
Joined: Thu Mar 09, 2006 8:32 am

Updater non-blocking

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
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The updater needs to update him self and because of this the updater copy him self in a temp location. The updater returns immediately for a second instance and thats why you can not wait for updater to return.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
clive_bor
Posts: 48
Joined: Thu Mar 09, 2006 8:32 am

Hi,

Oh ok, I worked around this; where does the updater update itself from?

Regards,
Clive
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

When updates are available the updater runs from a temp location (different with each lunch). This is done because the updater comes with your msi package and needs to update himself.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
clive_bor
Posts: 48
Joined: Thu Mar 09, 2006 8:32 am

Ok understood, thanks!

Kind regards,
Clive

Return to “Common Problems”