Wrong File Size error when using File Version - 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!

myost
Posts: 3
Joined: Thu Jul 07, 2011 6:38 pm

Wrong File Size error when using File Version

I am evaluating Advanced Installer in order to replace our current installation software and I'm running into an issue when trying to use the auto-update feature.

I've created 2 setups (version 1.0.0 and 2.0.0 respectively) and when the auto-update goes to install the second version, I get a Wrong File Size error from the updater. Now in the Update Configuration Project, I've told it to look for a file with a version of 2.0.0.0 (the main .net executable version number) so therefore i'm unable to figure out why it is still trying to validate the size of the file. I've verified that the setup can be retrieved via Internet Explorer from the URL so I know it's reachable and I can pull the MSI file down and install it and it will work so I've narrowed it down to the Updater.

Any ideas as to why this isn't working? I've attached a screenshot of the dialog as well as the update configuration project settings
Capture4.PNG
Capture4.PNG (29.19 KiB) Viewed 5895 times
Capture3.PNG
Capture3.PNG (107.06 KiB) Viewed 5895 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Wrong File Size error when using File Version

Hi,

Is the file specified in File Path field the same as the one in Download URL? What you set in File Path field is used for retrieving information about the update. Among other things this information is used for a file size integrity check.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
myost
Posts: 3
Joined: Thu Jul 07, 2011 6:38 pm

Re: Wrong File Size error when using File Version

The files are the exact same file. The one from the Download Url is a copy of the one from the Update Installer File Path location. Is the update Installer file path property the location of where the file will be downloaded to in order to check for file size?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Wrong File Size error when using File Version

Hi,
Is the update Installer file path property the location of where the file will be downloaded to in order to check for file size?
No, is the path from your HDD from where Advanced Installer reads the source in order to compute the size of the file. This is why it is recommended, as Cosmin suggested,
that you are using the same path as you are using for "Download URL" field, just to be sure it is the same file.

The location where the file is downloaded by the updater is specified in the main project, Updater page, "Downloads Folder" edit control.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
myost
Posts: 3
Joined: Thu Jul 07, 2011 6:38 pm

Re: Wrong File Size error when using File Version

I've figured out my issue. The download url was messed up (.com instead of .net). Thank you for your assistance!

Return to “Common Problems”