The downloaded update size does not match... - Advanced Installer Community
ttheimer
Posts: 7
Joined: Sun Jan 04, 2009 4:34 pm

The downloaded update size does not match...

I updated a programs and have created a new install package, created the update config. file, and posted both to the web server as I have done many times in the past. This is an MSI file and an update (vs a patch).

But tests on multiple computers show the correct update information yet fail after the "Downloading" screen with the message "Error: The downloaded update size does not match...".
- I can manually download using the URL in the configuration file copied to a browser.
- The size after manually downloading matches the Updater configuration file.
- The size after manually downloading is the same as the size shown on the server.
- I do not see any file appear in the folder identified as the DownloadsFolder in the updater.ini file but don't know if I should.

Where else can I check to verify this process and ultimately identify the reason for the failed download.

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

Re: The downloaded update size does not match...

Hi,

I'm not sure why you encounter this problem. Please make sure that the download is not blocked by other softwares (i.e. antivirus, firewall, etc.).

Can you reproduce the behavior on multiple clean machine? If so, can you please send me the .AIP (project file) and and the "Updates Configuration" project to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: The downloaded update size does not match...

Hi,

The problem appears because the size declared in your "updates.txt" file is different from the size of the MSI package downloaded by the updater. The size written in the "updates.txt" file is "20329472", but it should be "24154624". Can you correct this and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ttheimer
Posts: 7
Joined: Sun Jan 04, 2009 4:34 pm

Re: The downloaded update size does not match...

You seem to be right that the size should be "24154624" because when the size is changed in the update field then the update process will perform the download then fail on the MD5 check. So where did you get the size of 24154624? The Linux server reports a size of 20329472, Windows reports the same. And why might the Update tool use 20329472 to calculate the MD5 check value on this size? I.e. what do I need to change in my update tool to create a valid update file?

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

Re: The downloaded update size does not match...

Hi,

I downloaded the MSI package from the link written in your "updates.txt" file and noticed that its size is different from the one written in that file.

You need to make sure that the file used in the "Update Installer" tab of the "Updates Configuration" project is the same as the file placed on your server that will be downloaded by the updater. Advanced Installer gets the size of the file from the "Update Installer" tab, computes the MD5 based on that size and writes those values in the "updates.txt" file.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ttheimer
Posts: 7
Joined: Sun Jan 04, 2009 4:34 pm

Re: The downloaded update size does not match...

Thank you for the additional description. I had initially had an incorrect file defined in the Update tool but once that was found and corrected the Updates.txt file would not fully update (new and old information). I wasn't catching the error until I was matching my numbers with yours. Once I deleted the old file the new one generated with all correct data and the update and install worked perfectly.

Thanks again for your help!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: The downloaded update size does not match...

You're welcome. I'm glad you got this working.

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

Return to “Common Problems”