Archive: problems with certificates again


problems with certificates again
Hello there!

I've tried to add a certificate to our setup using the following statement:


!packhdr "C:\exehead.tmp" "D:\Certificates\utils\signcode -spc D:\Certificates\xxxxx\www.xxxxx.net.cert -v D:\Certificates\xxxxx\www.xxx.net.pvk -t http://timestamp.verisign.com/scripts/timstamp.dll -tr 5 C:\exehead.tmp"


Unfortunately the certificate is added before compressing which means that the certificate is not valid anymore.

Is there an alternative solution? BTW at wich time is "!system" executed? Before or after compressing?

Thanks...
David

The certificate is indeed added before the compressed data is appended. It's weird that it matters as the executable itself is not changed, but it does make sense somehow...

!system is executed immediately as it's parsed so it's executed before the compressed data is appended.

You'll have to manually add the certificate later or use a batch file.


Then I'd nominate a certificate instruction for the next release. It could be a ShellExecute that is executed after compressing.