jimpark / unsis

Automatically exported from code.google.com/p/unsis
Other
59 stars 15 forks source link

Uninstaller written by signed installer not signeable. #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Compile an installer which writes an uninstaller.
2. Sign the installer.
3. Call it to create the uninstaller.
4. Try to sign the uninstaller. 

What is the expected output?
A signeable uninstaller.

What do you see instead?
The sign tool gives an error message:
SignTool Error: SignedCode::Sign returned error: 0x80070057

What version of the product are you using? On what operating system?
NSIS v2.46.5-Unicode
Windows 7 Ultimate Service Pack 1 64-bit
SignTool.exe 6.1.760016385

Please provide any additional information below.

If I do not sign the installer, I can sign the uninstaller.
The tool Stud_PE shows differences in the PE structure:
The not signable uninstaller has different checksum and an entry in the 
certificate table.
I attach a little script which i used to determine the source of the issue.

Original issue reported on code.google.com by f.he...@kappa.de on 17 Sep 2012 at 11:57

Attachments: