X4 Code Signing Fails

Got a problem you cannot solve? Try here.
Shmulik28
Posts: 21
Joined: Sun Jan 28, 2007 10:33 am

X4 Code Signing Fails

Postby Shmulik28 » Tue May 03, 2016 4:25 pm

I'm using a new DigiCert Sha-2 certificate within InstallAware Studio (purchased couple days ago) - Worked fine in Installaware 18
Upgraded to X4 for the Double Code signing -->


In the Authenticode Signature Screen on the PFX/P12 File Tab:

Personal Information Exchange...
/path/to/codesigningfile

Time stamp URL:
http://timestamp.comodoca.com/rfc3161

The installer goes through many files Code SIgning /Double COde signing ...
it finally ends with:
Error during build: Code signing failed!

What should I be looking for - how to debug???

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: X4 Code Signing Fails

Postby FrancescoT » Wed May 04, 2016 11:39 am

Dear Shmulik28,

from the build dialog you should be able to see which is the file that caused the issue. This should be the last file listed into the build process window.

It may be possible that such particular file is already signed.
If this the case, you can exclude already signed files from the signature process.

Automatically sign all .EXE, .DLL, .OCX, .SYS, .CPL, .DRV, and .SCR files being installed

This is a three-state check-box which has effect only if the main Sign the package with Authenticode check-box is checked.

When this check-box contains a check mark, all mentioned file types included in your setup through the Install Files, Install Service, Install Assembly, and Install ODBC Driver commands will be automatically code signed.

When this check-box contains a square (does not contain a check mark but is not empty either), files will be code signed only if a signature does not already exist.

When this check-box is clear (does not contain a check mark or a square), no automatic code signing occurs for files included in your setup.


Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Shmulik28
Posts: 21
Joined: Sun Jan 28, 2007 10:33 am

Re: X4 Code Signing Fails

Postby Shmulik28 » Wed May 04, 2016 1:47 pm

Ok - missed that on the tri-state checkbox.

Went back in and set the "Automatically sign ..." to the square.

Still get an error message (Failed) - the previous file is from a third party uninstaller (uninst.exe) - I launch their installer from my installer, etc.

So, is there a way in the script to exclude a specific file?

Shmulik28
Posts: 21
Joined: Sun Jan 28, 2007 10:33 am

Re: X4 Code Signing Fails

Postby Shmulik28 » Wed May 04, 2016 1:56 pm

One piece of additional information:

So we're using a third party product (Web Update Wizard) to provide in software updates - in my installer I include and execute their installer (in silent mode) wuwinstaller.exe and their uninstaller (uninst.exe) when my application is uninstalled.

I ran the signtool from the command line as follows:

>signtool sign /a /t http://timestamp.comodoca.com/rfc3161 wuwinstaller.exe --> signs it fine
>signtool sign /a /t http://timestamp.comodoca.com/rfc3161 uninst.exe --> Error (0x800700C1), not a valid win32 application

so I definitely need to not try and sign this one file - can this be done in script?

Shmulik28
Posts: 21
Joined: Sun Jan 28, 2007 10:33 am

Re: X4 Code Signing Fails

Postby Shmulik28 » Thu May 05, 2016 7:13 am

Follow-up:

Contacted the vendor - quick reply from him, his installer/uninstaller was using NSIS - apparently NSIS doesn't create a well-formed installer. He provided an updated, signed installer/uninstaller so all is good (really nice to see such a quick positive turnaround from a vendor!).

Still would be useful to have the ability to somehow tag an individual file with a [IgnoreCodeSign] flag for less responsive third party vendors!

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: X4 Code Signing Fails

Postby FrancescoT » Thu May 05, 2016 10:18 am

Dear Shmulik28,

it's in fact the software vendor responsible of that and you did the right thing with contacting them.

We'll take in account your suggestion, however I am not quite sure if this can be implemented.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot], JohnGaver and 78 guests