I have an application in a Jar and I wrap it in a exe with launch4j so is easy for the user to launch it (in windows). I have a certificate, so I sign the jar (I don't know if this is really necessary because it will be wrapped inside the exe) and I want to sign the exe but it corrupt the executable.
I have seen inside the launch4j folder called sign4j that contains what I think is a program that solve this problem (this what I suppose reading the README file).
My problem now is how is used this program? And how can I integrate it in the ant script to sign the exe?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have an application in a Jar and I wrap it in a exe with launch4j so is easy for the user to launch it (in windows). I have a certificate, so I sign the jar (I don't know if this is really necessary because it will be wrapped inside the exe) and I want to sign the exe but it corrupt the executable.
I use ant to make all the process and look like:
I have seen inside the launch4j folder called sign4j that contains what I think is a program that solve this problem (this what I suppose reading the README file).
My problem now is how is used this program? And how can I integrate it in the ant script to sign the exe?
What I have found for now is that you must execute the sign4j command with the signing command as its argument. Something like:
Hello,
Exactly, this is the only way to sign the executable without corrupting it.
There is no special ant task, but you can use exec to run sign4j.
Grzegorz