FrancescoT wrote:Dear Danny,
all the update process is handled by the related "Update" script file and which is added to the project once the Update feature gets selected.
For what concerns your question, If you have a look at the script code you will see that the relevant part is within the "[Download and Install Updates]" Code Region (line 199).
The script reads (line 242) and writes (line 421) an "installedupdates.dat" file to keep track of the installed updates ... so you may replace or customize the script code that handles such file.
Regards
No, this is not it. Since i update multiple instances i have to transform the updates too. That folder (where the installedupdates.dat file resides) will change anyway from update to update (because of the transform) - at least for secondary instances.
Even if i comment out the line 421 the script will tell the "socket" to download the file, (the line 336 gets executed, and returns SUCESS), but if i use the same filenames between updates the socket cache will skip the download, still delivering the result SUCCESS.
So if i updated 1.0.0 to 1.0.1 using a file called InstallMyProduct.exe and then put up the update to 1.0.2 using the same filename (but different content, a new revision number and version number at the least), since the cached file from update to 1.0.1 remains in the cache, the update will be run but the resulting version will be 1.0.1 and not 1.0.2.
I can see this with a messagebox at line 336 and something fiddler-like on the update server side. I can also change my server to deliver files with the "Cache-control" header at it's most prohibiting, but that would limit the choices of servers so i have not tried that.
The installedupdates.dat, even if i could use it, is not a problem because when the update exe have been downloaded it is copied or renamed to the Version Name (as in the update packs). And it is not the version name that remains constant.
For others who run into this problem, a viable solution can be to append the Download URL with something that changes between versions but the server ignores, like so:
Code: Select all
http://www.domain.com/Web/InstallMyProduct.exe?version=1.0.2
because that will fool the IE cache. How this affects the Web Media Blocks, i have no idea yet. This is of course also not an optimal solution because it also introduces a manual step that provides means for mistakes.
I hope IA will add an option to skip the cache for downloads. Funny thing is that updates.ini seems to be read each time so i'm far from sure that the above reason covers it all and solves the issue.
Regards,
/Dany