question about application restart / auto restart - Advanced Installer Community

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!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

question about application restart / auto restart

G'day,

I'm using AI 7.6.1 build 27951

I have a question which concerns the application restart / auto restart functionality used by the updater.exe

I have a java app which launches the updater.exe with appropriate command-line options. Assuming updates are available,
- updater downloads the update
- updater auto-closes my app (if my app is running)
- updater runs the update or patch
- updater restarts my app

This is all working perfectly, but my question is this - will the updater only attempt to restart my app if the updater auto-closed it?

The reason I ask is because we have some testers who claim the app is not restarted after the update is applied. I have investigated this extensively and the only way I can reproduce the problem is if I manually close my app while the updater is downloading the update. Once the updater has finished the download, it checks to see if my app is running and doesn't find it (since I already closed it myself) and thus doesn't attempt to auto restart it after applying the update.

I just want to confirm that my understanding is correct - even though my app was running when the updater started downloading, if the updater doesn't find my app running as part of the "auto-close" check, then the updater will not attempt to auto-start my app after applying the update.

I don't think it matters, but I am invoking the updater as such: updater.exe /silentall -nofreqcheck

Thanks for your help,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: question about application restart / auto restart

Good day to you too, Todd,

Indeed the updater only restarts the application if it previously closed it.

I hope this helps.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”