ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

This archive is corrupt

Hi,

I'm running the enterprise version and although it is now out of support, I don't think I've ever had a reason to open a case before. We recently purchased an SSL certificate to sign our application which we distribute over the web. This worked fine until today when I started getting the message "This archive is corrupt". I unchecked the "sign the package using signtool.exe" box and the archive is fine. I should also note that the msi pre-requisite package created with the same certificate and advanced installer works just fine.

I'm perplexed and hoping you've got some idea about what's going on here...

Thanks,

ps.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: This archive is corrupt

Hi,

This behavior may be encountered if the EXE or MSI file generated by Advanced Installer is modified after it is digitally signed (after the project is built). Are you modifying the installation files after they are generated by Advanced Installer?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

Hi Cosmin,

No, I didn't know such a thing was possible / necessary. I just created the exe and then immediately tried to run it. Through explorer I'm able to view the properties of the executable indicating that the file itself isn't corrupt but rather something to do with the advanced installer file when it extracts / attempts to install.

Can you think of anything else that is causing this?
Thanks / Regards,

ps.
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

I'm running v5.1.1 if that makes any difference...

Thanks again,

ps.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: This archive is corrupt

Hi,

I'm not sure why you are encountering this behavior.
Can you please give me more details about the changes made to the project since it worked correctly? Also, can you please send us a screen-shot with the error message to support at advancedinstaller dot com?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

Hi Cosmin,

I just sent the information to the support e-mail address. I'm now beginning to wonder if it ever did run correctly - since there are two separate installer files in our package, it's possible that I only tested one and assumed the other was ok. If it did work, then nothing has changed except perhaps the contents of the build since the directories are synchronized with our build directory.

Thanks again for your help.
Regards,

ps.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: This archive is corrupt

Hi,

We did a lot of testing and we cannot reproduce on our test machines the behavior you encountered. Can you reproduce this behavior on other machines (build and run the package on another machine)?

If the problem persists please send us the AIP (Advanced Installer Project file) you are using to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

I managed to get everything installed on another machine and have the same problem there. I switched to creating an msi rather than an exe and everything worked fine. The only reason I have an exe is because this package needs to install a pre-requisite and it's my understanding that you cannot do that from an msi (at least you couldn't when I started creating the packages). This will be less of an issue for our next release but that's not for another 6 months or so.

In trying to find the underlying cause do you think that the CapiCom.dll could have something to do with the problem? I ask because I had to move a copy from another directory into the directory containing signtool.exe before I could get it to work at all. The version number is 2.1.0.1 if you're running something different.

Let me know what you think and what we can try next.

Thanks for all the support in addressing this.
Regards,

ps.
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

I've been playing around and discovered something else that I thought I would add. When I create a package with the msi outside of the installation, the msi itself installs fine but the exe continues to fail. Hope that helps.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: This archive is corrupt

Hi,

Please try using the 6.2 version of Advanced Installer.

We tested the AIP you sent and we found no problem with it. Does the problem persist when you don't use a digital signature certificate? If this is the case then the problem is caused by the certificate.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

Hi Cosmin,

I installed v6.2 and still have the problem. I don't see how you can say it's the certificate since it works when I create the MSI but not the exe. Since (it is my understanding that) the executable installer is something that is created by Advanced Installer for the purpose of checking pre-requisites etc..., isn't it possible that it's your executable that's having the problem? I will check with the CA that generated the certificate but I don't see how it could be the problem if it works with the MSI package.

Thanks?

ps.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: This archive is corrupt

Hi,

You are correct, this may be caused by Advanced Installer (although we cannot reproduce it). Can you please send us to support at advancedinstaller dot com a signed EXE which shows this behavior so we can investigate it?

Also, you can try to use the SignTool.exe file to sign the files after they have been built. In this case you should not configure the digital signature in the Advanced Installer project. Let us know if the problem persists even when signing the files directly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

Hi Cosmin,

I had already tried signing the executable externally. I was getting the following error message;

SignTool Error: The signing certificate is not valid for the requested usage.

So I decided to follow up with the CA that issued the certificate. They have me jumping through hoops to convert to .spc's, .pvk's, .... but it's still not working - I'm beginning to suspect it is the certificate after all. Does anyone have experience working with a certificate from COMODO? If so, can you please let me know what needs to be done to get this to work? If not, I'm ready to return the certificate and start again with someone else - if you have any recommendations I'd really like to hear them as I'm running out of time to get this done.

Thanks / Regards,

ps.
ps2
Posts: 16
Joined: Fri May 02, 2008 9:54 pm

Re: This archive is corrupt

It turns out that when an msi is signed, it doesn't need the timestamp url to be provided - exe's appear to be more sensitive / restrictive.

Thanks for your help.

ps.

Return to “Common Problems”