PDA

View Full Version : Code signing proces failed - on second instance only



NewsArchive
11-03-2008, 01:25 AM
Please see the attached pic

You can see the failure line (although I have no idea what error 1053 is, as
noted in another thread) on a code-sign

However, the code-sign *succeeded* on the previous (XP) version of the file,
4 lines up...
And the manifest-embed succeeded on *this* file (2 lines up)

So: what is the meaning of the mysterious codes "1053" and "-1"??

Steve

NewsArchive
11-03-2008, 01:25 AM
WAG...
if this is a new project, double-check that you've got the correct password,
certificate paths, etc. for signing the Vista file.

Jane

NewsArchive
11-03-2008, 01:26 AM
1. Not a new project
2. Nevertheless.. I re-entered the password on both code-signing lines (the
first one passed, anyway).. no change/error remains on second
3. Paths on certificates are identical on the successful line and the
failure line.

Failure remains:
"Compiler error GEN1053.... Error code = -1"

Probably something quite simple.. just don't know what!

It would be helpful if the error codes were explained...
...or if I could find them in the help

Steve Bywaters

NewsArchive
11-03-2008, 01:27 AM
> 1. Not a new project
> 2. Nevertheless.. I re-entered the password on both code-signing lines
> (the
> first one passed, anyway).. no change/error remains on second
> 3. Paths on certificates are identical on the successful line and the
> failure line.
>
> Failure remains:
> "Compiler error GEN1053.... Error code = -1"
>
> Probably something quite simple.. just don't know what!
>
> It would be helpful if the error codes were explained...
> ...or if I could find them in the help

Good idea. Send a suggestion to Microsoft and ask them to return an error
code from the code-signing tools ;-)

It's not explained in the SB manual because there is no error code at all
(-1).

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-03-2008, 01:27 AM
BTW, start SignCode.exe and code-sign that specific executable manually.
It's possible that the code-signing tool will give you an error description.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-03-2008, 01:29 AM
it's one of these patch-down jobs between Vista and XP... I have it working
in half a dozen scenarios.. don't know what's up here.

Running the CodeSign.exe, it WILL sign the item in XP folder and will NOT
sign the one in Vista folder (see pic 1).
The only difference is that SB adds the manifest (pic 2)
(No useful info returned as to why not!)

I have tried deleting the EXEs in both sub-folders and trying again - same
result

Steve Bywaters

NewsArchive
11-03-2008, 01:30 AM
Steve,

> Running the CodeSign.exe, it WILL sign the item in XP folder and will NOT
> sign the one in Vista folder (see pic 1).
> The only difference is that SB adds the manifest (pic 2)
> (No useful info returned as to why not!)

If you use the Microsoft SignCode.exe and it fails, what error (code) is
reported?

Friedrich

NewsArchive
11-03-2008, 01:34 AM
See below.... about as helpful as "-1", eh?

Steve Bywaters

NewsArchive
11-03-2008, 01:35 AM
>
> See below.... about as helpful as "-1", eh?
>

Absolutely <g>

Friedrich

NewsArchive
11-04-2008, 01:34 AM
If I COMMENT OUT the embed-manifest line, then it will code-sign!!!

What the ....??

Steve Bywaters

NewsArchive
11-04-2008, 01:34 AM
> If I COMMENT OUT the embed-manifest line, then it will code-sign!!!
>
> What the ....??

Perhaps your .exe does not have a valid Resource Configuration (RC Config)
data section?

Add, say, a version resource to your .exe and try it again.

HTH,

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-04-2008, 01:35 AM
Yes, this would make sense. I think your .exe does not have a .rsrc
(resource) section.

Add it and you are done.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-04-2008, 01:35 AM
It had a version resource already.

But, after some more fiddling around, I simply re-compiled - and now it all
works (again).

No clue.. but it didn't like the previous version of the EXE, obviously!

Steve Bywaters