Help using signtool.exe in Delphi project build events

This is a very simple question. What should I write in events after building Delphi to execute the coomand line tool?

I wrote this:

c:\BinPath\signtool.exe sign /fc:\BinPath\Mypfxfile.pfx /p MyPassword /t http:// timestamp.verisign.com/scripts/timstamp.dll c:\BinPath\Project1.exe 

(where c: \ BinPath is the Delphi output path, for simplicity I copied the signtool.exe adn pfx file in the same folder)

as I build project I have this modal window error:

--------------------------- Project 1- CodeGear Delphi for Microsoft Windows - Form1 ------------- -------------- Unable to open file "C: \ SourcePath \ EXEC". Unable to find the specified path ..

and in the messages that I have

[Exec error] EXEC (1): Msgstr "SignerTimeStamp () error." (-2147467259 / 0x80004005)

[Exec error] exit the command "c: \ BinPath \ signtool.exe sign /fc:\BinPath\Mypfxfile.pfx/p MyPassword / t http: // timestamp.verisign.com/scripts/timstamp.dll c: \ BinPath \ Project1.exee "with code 1.

How to do it? In the help of Delphi I read (from the section "Creating assembly events"):

Enter build commands, one command per line, and press Return after entering each command. Commands consist of any valid DOS command, such as: copy $ () c: \ Built \ $ ()

So, I just inserted into the assembly event what ( c:\BinPath\....Project1.exe ) I managed to run from the command line. Where is the mistake? Thanks.

+6
delphi post-build-event
source share
1 answer

I could remove this question since I found the problem, but I think it is better to leave it as it may be useful to others:

PROBLEM SIMPLICITY

 http:// timestamp... 

of course should be

 http://timestamp... 

when copying in an assembly event, I put extra space in error. After reading the question, I found an error ...

+6
source share

All Articles