Shawn Edwards
2007-11-07 23:39:33 UTC
I know this is not a general windows installer or code signing list, but
this troublesome .msi file is generated using Wix3 and I can't imagine
something like this lingering in signtool.exe and I'm just the first person
to stumble upon it.
I have a .wxs file which via candle and light generates a .msi file which is
293,915,648 bytes. When I try to sign it using signtool.exe, I get this:
The following certificate was selected:
Issued to: MyCompany Inc.
Issued by: VeriSign Class 3 Code Signing 2004 CA
Expires: 5/28/2008 5:59:59 PM
SHA1 hash: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Done Adding Additional Store
Attempting to sign: MyInstaller.msi
SignTool Error: ISignedCode::Sign returned error: 0x80092002
An error occurred during encode or decode operation.
SignTool Error: An error occurred while attempting to sign: MyInstaller.msi
Number of files successfully Signed: 0
Number of warnings: 0
Number of errors: 1
The error code description translates to 'something bad happened'.
When I remove enough files to get it down to 287,634,860 bytes, I can sign
it. There's likely some size in the middle that's magic I would guess.
The two above tests were done with the CompressionLevel="high" in the .wxs
file. I have tried with CompressionLevel="none", and it gives an installer
in the 420MB range and it won't sign, either. I'm still messing with this
to see if there is a magic number for the final file size.
I know I could generate an external .cab file, but then the user will have
to download both files or have some kind of self-extracting archive or...
and none of those are considered acceptable by my customer. They want one
file, and no extra disk space required during install.
I'm using Wix 3.0.3419.0 and the signtool.exe from the latest Platform SDK.
I've searched around and I have yet to find anywhere that says I can't have
an .msi file this size. Not knowing the actual changes made to the file as
part of the signing process, I don't know if there is an issue with the .msi
file or if this is an issue with signtool. My bet is this is an issue with
Wix3's generated .msi file, but again, I don't know where to start.
Any and all help is appreciated.
this troublesome .msi file is generated using Wix3 and I can't imagine
something like this lingering in signtool.exe and I'm just the first person
to stumble upon it.
I have a .wxs file which via candle and light generates a .msi file which is
293,915,648 bytes. When I try to sign it using signtool.exe, I get this:
The following certificate was selected:
Issued to: MyCompany Inc.
Issued by: VeriSign Class 3 Code Signing 2004 CA
Expires: 5/28/2008 5:59:59 PM
SHA1 hash: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Done Adding Additional Store
Attempting to sign: MyInstaller.msi
SignTool Error: ISignedCode::Sign returned error: 0x80092002
An error occurred during encode or decode operation.
SignTool Error: An error occurred while attempting to sign: MyInstaller.msi
Number of files successfully Signed: 0
Number of warnings: 0
Number of errors: 1
The error code description translates to 'something bad happened'.
When I remove enough files to get it down to 287,634,860 bytes, I can sign
it. There's likely some size in the middle that's magic I would guess.
The two above tests were done with the CompressionLevel="high" in the .wxs
file. I have tried with CompressionLevel="none", and it gives an installer
in the 420MB range and it won't sign, either. I'm still messing with this
to see if there is a magic number for the final file size.
I know I could generate an external .cab file, but then the user will have
to download both files or have some kind of self-extracting archive or...
and none of those are considered acceptable by my customer. They want one
file, and no extra disk space required during install.
I'm using Wix 3.0.3419.0 and the signtool.exe from the latest Platform SDK.
I've searched around and I have yet to find anywhere that says I can't have
an .msi file this size. Not knowing the actual changes made to the file as
part of the signing process, I don't know if there is an issue with the .msi
file or if this is an issue with signtool. My bet is this is an issue with
Wix3's generated .msi file, but again, I don't know where to start.
Any and all help is appreciated.
--
Shawn Edwards
Beware programmers with screwdrivers. Or, for that matter, any other mixed
drink.
Shawn Edwards
Beware programmers with screwdrivers. Or, for that matter, any other mixed
drink.