FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Updater now requires Size

looks like at some point between when i initally implimented our autoupdates, the aic file now needs the "Size=" (without it i am getting "invalid updates configuration file")

I have a Web site installer, that includes an installer which is run for each client that connects, part of the client installer is to update itself. I am constructing the AMCUpdates.txt (aic) file as part of the install

Previously, when i implemented this, the updates file did not require the Size parameter.(it had been working with just "name", "RegistryKey", "URL" and "Version")

If i now need to include the Size, i need access to the "size" property of the installer, is there a property i can access for that file that i can use to set the Size= parameter for the .aic file?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater now requires Size

Hello,

There is no installer property which you can access in order to get the size of a setup. The "Size" key of the updates configuration file should be set with the exact size (in bytes) of the updates setup package.

Also, as a side note, please keep in mind that the recommended approach is to create the updates configuration file by using an updates configuration project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Re: Updater now requires Size

Hi Dan, thanks for the info

The size im after is really just the size of a delivered file during the install (not specifically the msi size i am making with the active installer)

Basically my website installer delivers another (client drivers) installer (which has been built beforehand), if there is no way to do it with AI, i'll write a custom action to take care of this, i was just hoping to avoid that
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater now requires Size

You're welcome.

There is no predefined support to get the size of a file delivered by a setup installation. You should write your own custom action in order to achieve this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Re: Updater now requires Size

Dan, its not really possible to do with a custom action since we want to add it as part of an "edit ini" file, however since we are batch building as part of our "main" builds, ive been able to pass the filesize using a SetProperty call in the .aic file we pass to AI when building our web installer (having previously build the client installer)

if case anyone needs to know how i got the filesize, i utilised this method:
http://stackoverflow.com/questions/1213 ... -file-size

Return to “Common Problems”