View Full Version : Compiler error GEN1053: Code signing process failed.
NewsArchive
01-10-2017, 02:48 AM
We keep getting a "Compiler error GEN1053: Code signing process failed." on the
setup.exe file.
All other files in the installation package code sign without issue.
Any suggestions would be appreciated.
Ken Stone
NewsArchive
01-10-2017, 04:21 AM
Ken,
> We keep getting a "Compiler error GEN1053: Code signing process failed."
> on the
> setup.exe file.
> All other files in the installation package code sign without issue.
>
> Any suggestions would be appreciated.
If you are using the same certificate and configuration information, then
it's caused by your protection software (false-positive bug). If you are
interested, post the compiler window information. Perhaps we can see what
it going wrong.
BTW, are you using the "Global SHA Code-Signing Type" (Tools... | Options...
| Code-Signing)?
Friedrich
NewsArchive
01-10-2017, 10:04 AM
We have disabled McAfee for the duration of the build.
Still getting the attached error.
Thanks
Ken Stone
NewsArchive
01-10-2017, 10:05 AM
We've found the issue. Had an ELSE statement in the wrong sequence...
Ken Stone
NewsArchive
01-10-2017, 10:05 AM
Ken,
>
> We've found the issue. Had an ELSE statement in the wrong sequence...
>
Hmmmm, an ELSE statement in the wrong sequence caused this? Could you
please give some more information? You can reproduce this with a wrongly
set ELSE statement?
Thanks,
Friedrich
NewsArchive
01-11-2017, 03:12 AM
See the attached..
Ken Stone
NewsArchive
01-11-2017, 08:08 AM
Ken,
>
> See the attached..
>
From the technical point-of-view, it is impossible that the "Else" Statement
sequence caused this. Microsoft Authenticode handles the code-signing
process after the compilation process and this is not related to the script.
All the script commands are executed at installer runtime and not script
compile time. See attached screenshot. I have created a script snippet
with your code and it code-signs fine.
Friedrich
NewsArchive
01-12-2017, 04:15 AM
Friedrich,
> From the technical point-of-view, it is impossible that the "Else" Statement
> sequence caused this. Microsoft Authenticode handles the code-signing
> process after the compilation process and this is not related to the script.
> All the script commands are executed at installer runtime and not script
> compile time. See attached screenshot. I have created a script snippet
> with your code and it code-signs fine.
You missed one extraneous ELSE but I tried it and everything signed as
expected. Unsure how the runtime would handle it but...<g>
Lee White
NewsArchive
01-12-2017, 04:16 AM
Hi Friedrich,
Thanks for the followup.
- When we corrected the ELSE statement, the errors stopped.
- The ELSE statement was the only thing we changed.
We are completely puzzled...
Ken Stone
NewsArchive
01-12-2017, 04:49 AM
Lee,
> You missed one extraneous ELSE but I tried it and everything signed as
> expected. Unsure how the runtime would handle it but...<g>
Else
Else
Ouch! Very interesting <g>. The compiler should catch this error. I'll
fix this.
Thank you!!!!!
Friedrich
NewsArchive
01-12-2017, 04:50 AM
Hi Ken,
> Thanks for the followup.
> - When we corrected the ELSE statement, the errors stopped.
> - The ELSE statement was the only thing we changed.
>
> We are completely puzzled...
Just for fun, what happens when you add the ELSE statement again? Does it
still give a code-signing error?
Thinking out loud, perhaps your ELSE statement generated a specific byte
sequence in the setup.exe that looked like a "malware" fingerprint and a
protection mechanism kicked in (Windows Defender, etc.). This
false-positive then blocked the code-signing process.
Friedrich
NewsArchive
01-12-2017, 12:31 PM
We will try it ASAP.
Thanks
Ken Stone
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.