Wrong file size - Advanced Installer Community
ANikolova
Posts: 15
Joined: Thu Dec 18, 2014 4:47 pm

Wrong file size

Hello,
We are having problem with our client auto update.
The server is hosted on the IIS and is using SSL. For this purpose we have a self-signed certificate installed on the server. So that when the updater.exe is started a Windows Security Alert is displayed. When you proceed then another windows security message is displayed(message 3 from attachments). If you choose the wrong option the download of the new client updated is cancelled. But when you start updater.exe again and go through all those messages and choose the right option - then the download begins. Upon finishing, however, an error wrong file size appears and the update is cancelled.

If you lick the right buttons at first, then the download is successful and the update begins.
What could be the problem? How can we fix that?
Thanks in advance.
Attachments
message3.png
message3.png (59.51 KiB) Viewed 7399 times
message2.png
message2.png (44.27 KiB) Viewed 7399 times
message1.png
message1.png (110.55 KiB) Viewed 7399 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Wrong file size

Hello,

This is quite strange indeed. Can you please send us the AIPs (project files) of the old product version, new product version and of the updates configuration file to support at advancedinstaller dot com so we can investigate them? Also, please send us a download link for the setup package of your old product version so we can test your updates installation scenario on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ANikolova
Posts: 15
Joined: Thu Dec 18, 2014 4:47 pm

Re: Wrong file size

I have sent you an email. Keep in mind that the web address to access our server will be open until the 17th.

With regards,
Anna Nikolova
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Wrong file size

Hello Anna,

I apologize for the delayed reply.

I tested your scenario using the resources that you sent us over the e-mail and I was able to partially reproduce the behavior.

The "message1" and "message2" that you attached were, indeed, thrown in my tests, but the "message3" was not displayed regardless of the options that I use. However, if I click the "Yes" button to proceed with the update, the updated package is downloaded and installed successfully, without a "wrong file size" error to be displayed.

On the other hand, when I click the "View Certificate" option to see more details about the certificate it says that the "certificate is not trusted" as the "message1" also displays. So this is the reason why all those messages are displayed. There are many "SSL Certificate Checker" sites where the certificate can be verified to see if it is trusted or not.

I moved the updated package on a trusted server (i.e. Dropbox) and the update was performed successfully without any message to be displayed. So, my conclusion is that the problems are caused by the certificate used by you.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ANikolova
Posts: 15
Joined: Thu Dec 18, 2014 4:47 pm

Re: Wrong file size

The certificate I use is a self-signed certificate. Is there a way to make a self-signed certificate in the aip project?
The third message only shows if you have a third-party certificate installed on your computer(from which you are browsing the server). Something, like online banking certificate will do the trick. Only if you see the third message. And click Confirm or OK, then the Wrong file size error appears.
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: Wrong file size

You can include the .cer or .pfx file and use a third party tool such as System.Security.X509Certificates to install the certificate through custom actions (C# custom actions work very well for this. We have an installer which will also generate and export a root authority certificate as well as a personal certificate, then install them in the Windows Certificate Manager and a Java Keystore).
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Wrong file size

Hi,

Yes, you can use a self-signed certificate in the AIP project to sign your package, but this is only recommended for testing purpose, not for a package that will be released. This is because it is not trusted and many browsers will block it.

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

Return to “Common Problems”