Updater fails with equal sized update (even with MD5) - 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!

Kallex
Posts: 25
Joined: Thu Aug 07, 2008 4:11 pm

Updater fails with equal sized update (even with MD5)

I just discovered after some testing that the updater doesn't download the update (despite the different MD5 signature in the update file) if the file with same name and same size is found in local download location.

This means that if updater tries update the newer version of a package that would happen to be equal size that the earlier update, it skips the download and then promptly fails at the update (as it is running with the earlier package).


Now there are perfectly valid cases where for example some installation parameters are changed, that will not change the resulting file size at all. Even when all the other conditions hold true (version, productcode and md5 hash are updated accordingly) the update fails due to download skipping based on filename and file size.


I tested the behaviour with 6.4.1. Did I miss something or is this something that will get revisited perhaps?


Br,

Kalle
Kallex
Posts: 25
Joined: Thu Aug 07, 2008 4:11 pm

Re: Updater fails with equal sized update (even with MD5)

To emphasize the matter more, during small adjustments (that often turn out to be very important validity checks) even to the assemblies that change the file sizes, we are really often producing exactly same size of the msi package.

This in turn means that the updater while detecting the correct update, always fails to update the system.


Br,

Kalle
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Updater fails with equal sized update (even with MD5)

Hi Kalle,

Note that the name for a section must be unique. It is required to place each new update data in a section with a new and different name from the others. This is because the Updater will download the update file in a folder with the same name as the section. A section corresponds to a entry in "Updates Configuration" project.

For more details please see:
http://www.advancedinstaller.com/user-g ... ation.html

Best Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Kallex
Posts: 25
Joined: Thu Aug 07, 2008 4:11 pm

Re: Updater fails with equal sized update (even with MD5)

Hi!

Ok, thanks for the fast response, that will likely solve the issue.


However this then leaves open how come the current implementation accepts the old file, that does not match the MD5? If the sizes differ, it re-downloads it and everything works, but if just the MD5s not match, it happily proceeds to try to run the installation (and fails).


Br,

Kalle
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Updater fails with equal sized update (even with MD5)

Hi Kalle,
However this then leaves open how come the current implementation accepts the old file, that does not match the MD5? If the sizes differ, it re-downloads it and everything works, but if just the MD5s not match, it happily proceeds to try to run the installation (and fails).
We shall consider improving this behaviour in a future version. Thank you for bringing this to our attention.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Kallex
Posts: 25
Joined: Thu Aug 07, 2008 4:11 pm

Re: Updater fails with equal sized update (even with MD5)

Hi!

Thank you for providing first class support through these forums :-).

Relating to this (and why I preferred using the same tag name), is there an option to clear out cached downloads? Using the same tagname would overwrite the old one, now they start to cumulate. Full uninstall gets rid of them all though.


Br,

Kalle
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Updater fails with equal sized update (even with MD5)

Hi Kalle,

You can execute "updater.exe" with the following arguments:

Code: Select all

updater.exe /m clean silent
This command is executed as a Custom Action during uninstall.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”