How to check if the update is ready to download? - Advanced Installer Community
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

How to check if the update is ready to download?

It seems that recently return codes of the updater has changed. I used to check if the update was ready to download or install by calling:

Code: Select all

updater.exe /justcheck -installready
If the update was ready to install it returned 0.
If no updates were available to install nor download, it returned 0xE0000011.
If the update was ready to download it returned 0xE0000021 (this code is described in post: http://www.advancedinstaller.com/forums ... =15#p73682 and used to be in http://www.advancedinstaller.com/user-g ... dater.html, but now is missing)

Right now if the update is available to download and the -installready flag is used, the updater always returns 0xE0000011.

I have two questions:
1. When and why behaviour of the updater has changed?
2. How can I check if the update is ready to download?

Best regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to check if the update is ready to download?

Hello,
1. When and why behaviour of the updater has changed?
The behavior was changed in the last release. We removed some of the return codes from the updater CLI in an attempt to simplify the behavior.
2. How can I check if the update is ready to download?
With the current changes you have call the updater using:

Code: Select all

updater.exe /justcheck
=> if updates are ready to download the updater will return 0
=> if no updates are available to download the updater will return 0xE0000011 as before

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”