ebourg / jsign

Java implementation of Microsoft Authenticode for signing Windows executables, installers & scripts
https://ebourg.github.io/jsign
Apache License 2.0
250 stars 107 forks source link

corrupted signed executable #121

Closed zosrothko closed 1 year ago

zosrothko commented 2 years ago

Hi

With the jsign-4.0.jar, I am signing an executable produced by launch4j with a wrapped jar, named 'EnterpriseStudio.exe' . While the non signed executable is working well, the signed one seems to corrupt the executable. There is a pop-up windows as below

image

Here the EnterpriseStudio.exe as a zipped file EnterpriseStudio.zip

ebourg commented 2 years ago

Yes this is a known issue (see #80). The workaround is to define the main class in the launch4j configuration:

<classPath>
  <mainClass>org.acme.Main</mainClass>
</classPath>