updater without internet connection - 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!

CusterCounty
Posts: 10
Joined: Fri May 02, 2008 4:49 pm

updater without internet connection

I have an Visual Basic 2008 application that starts updater in /silent mode when the application ends. If the machine is not connected to the internet (for example a laptop on the road), updater.exe runs forever and uses 80-90% of the CPU. If you run updater with /checknow, it sits for about one minute and then finally ends with an error message (this is fine and understandable since it cannot get to my web site). There needs to be a time limit (user settable preferably) so that if the web site cannot be connected in so many seconds, updater ends. In /silent mode, it should end without displaying an error message. Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: updater without internet connection

Hi,
updater.exe runs forever and uses 80-90% of the CPU
This is because your application runs the updater multiple times in a short period of time. Note that the Updater should be launched once in a couple of hours.
There needs to be a time limit (user settable preferably) so that if the web site cannot be connected in so many seconds, updater ends.
The Updater timeout is set by default to 1 minute. However, if the updater is launched multiple times, each instance will have this timeout (the updater may run for a long time).
In /silent mode, it should end without displaying an error message.
Please note that the Updater doesn't show an error message if it's launched in silent mode. If you are referring to "/checknow", please note that this is the normal behavior (the "/checknow" parameter does not launch the updater silently).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CusterCounty
Posts: 10
Joined: Fri May 02, 2008 4:49 pm

Re: updater without internet connection

Actually after further testing, I believe my problem is caused by my firewall protection. We use McAfee Total Protection for Small Business here. The first time updater is started, McAfee stops it from going out to the internet and pops up a window asking if it's OK to let this program run. Once you answer "Allow", updater runs fine. Except that first time that updater is started it just keeps running and using most of the CPU. I've let it run as long as 15 minutes just to see if it would timeout or not but it did not. I would go into Task Manager and end it and then everything was OK. Right now I'm installing the new software on everyone's machine so I can wait for McAfee, tell it it's OK to let updater run, and then go into Task Manager and kill the stopped updater. But eventually I'd don't want to have to go around to everyone's PC to install. Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: updater without internet connection

Hi,

I tested this scenario and I cannot reproduce the behavior you encountered. The McAfee firewall prompts about the Updater, but the Updater doesn't do anything if it doesn't receive access. Therefore, I'm not sure if the problem is caused by the firewall.

Can you please send us to support at advancedinstaller dot com the code snippet which integrates the updater into your application so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”