rguggisberg
Frequent contributor

Error Signing Files in Build Automation

I am implementing Build Automation with VS 2013 and InstallShield 2013 SP1 SAB.
Everything is working except for signing. I am getting “Build Error -1027”.
Of course signing of InstallShield files works on my other machine when building from VS.
I am using a pfx file for signing.
The thing that I think is odd is that the error message indicates that if failed signing files in the src folder... shouldn't it be signing files in the bin folder?

C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing F7C7.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing F97E.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing FA6B.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing FB57.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing FC34.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing FD20.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing 5E1.tmp
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing certificate.msi
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -6258: An error occurred extracting digital signature information from file "C:\Builds\2\MyProj\2013Q4-Services-Manual\src\Services

Deployment\Services Deployment\Services Release\Interm\certificate.msi". Make sure the digital signature information provided in the IDE is correct. [C:\Builds\2\MyProj\2013Q4-Services-Manual\src\Services Deployment

\Services Deployment.isproj]
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing Services.msi
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -6258: An error occurred extracting digital signature information from file "C:\Builds\2\MyProj\2013Q4-Services-Manual\src\Services

Deployment\Services Deployment\Services Release\ServiceInstaller\DiskImages\DISK1\Services.msi". Make sure the digital signature information provided in the IDE is correct. [C:\Builds\2\MyProj\2013Q4-Services-Manual\src

\Services Deployment\Services Deployment.isproj]
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -6003: An error occurred streaming 'C:\Builds\2\MyProj\2013Q4-Services-Manual\src\Services Deployment\Services Deployment\Services

Release\ServiceInstaller\DiskImages\DISK1\Services.isc' into setup.exe
C:\Program Files (x86)\MSBuild\InstallShield\2013\InstallShield.targets(77,3): error : -1027: Failed signing Services Installer.exe [C:\Builds\2\MyProj\2013Q4-Services-Manual\src\Services Deployment\Services
Deployment.isproj]
Labels (1)
0 Kudos
1 Reply
rguggisberg
Frequent contributor

Installed certificate was expired 😞
Good way to test is to use SignTool.exe and try to sign a file manually.
0 Kudos