Timeout - Advanced Installer Community
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Timeout

I want to set timeout time for update.
Where can I find related information??
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Timeout

Hi,

To achieve this you can use the "/set retryattempts <retryattemptslitmit>" command line where you can specify how many times the updater can try to reconnect to the server and check for updates if the initial check failed. The timeout between the checks is at 30 seconds.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Re: Timeout

if updater.exe can't access the server, how long will it take to finish the detection??
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Timeout

Hi,

If you set the "retryattemps" attribute to "1" it will take 30 seconds, if you set that attribute to "n", then it will take n*30 seconds.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Re: Timeout

Thank you!!!!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Timeout

My pleasure.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Re: Timeout

Sorry...
tt.JPG
tt.JPG (49.49 KiB) Viewed 6756 times
I set /set retryattempts <0> in automatic(Configure Task)

But I can't check that it work well or not.

This commandline is checking silently and don't inform the user???
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Timeout

The updater checks silently for updates only if you checked the "Silently check for updates and automatically install" option from the "Updater" page of your project.

Also, please keep in mind that when the updater is set to silently check for updates, a frequency check is set for it and it can check for updates only after that frequency period expired. That period can be set using the "Silent mode update check frequency" option from the "Updater" page.

If you want to ignore that frequency period, you can use the "-nofreqcheck" command line. Please take a look on the Auto Updater article for more details.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tjwlsdkzzz
Posts: 26
Joined: Fri Sep 12, 2014 10:54 am

Re: Timeout

sorry, I misspeak.



I set /set retryattempts <0> in automatic(Configure Task)

And I set to check for updates and inform the user

But I can't check that it fails or not when I only set /set retryattempts <0>

There is no message about updates.

I want to set /set retryattempts <0> and check updates.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Timeout

Please keep in mind that the scheduled task that you created should be executed (manually by the user or at the specified time) in order to run the updater and get the check result.

Also, the "<>" characters must not be used in the command line, they are used in our article to let the user know that there can be introduced a custom value, so you should use the following command line: /set retryattemps 0

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”