No option to Digitally sign Java Native Launcher exe - Advanced Installer Community
vewert
Posts: 6
Joined: Wed Jun 19, 2013 5:16 pm
Contact: Website

No option to Digitally sign Java Native Launcher exe

I am creating an installer for a Java application. After creating the Product in 'Java Products', I can see the corresponding .exe in 'Files and Folders'. When I open the properties for the .exe, there is no option (checkbox) to be able to digitally sign it.

I have tried going in to 'Digital Signature' and adding the .exe in 'Files Configured for Signing' but it seems that after I save and close Advanced Installer project and then re-open the project, the .exe is no longer included in the files to be signed.

How do I get Advanced Installer to sign the Java Native Launcher .exe?

Thanks,
Victor
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No option to Digitally sign Java Native Launcher exe

Hi Victor,

I've tested your scenario, but I cannot reproduce the behavior. Can you please tell us the version of Advanced Installer you are using?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vewert
Posts: 6
Joined: Wed Jun 19, 2013 5:16 pm
Contact: Website

Re: No option to Digitally sign Java Native Launcher exe

I am using the latest version: 10.3, but originally created the project with 10.2. I have included a screenshot.

Image

When I first started playing around with Advanced Installer, I vaguely remember the checkbox being there but I'm not sure.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No option to Digitally sign Java Native Launcher exe

Hi Victor,

Indeed, the "Digitally sign the file" option is not available for the Java Native Launcher if you have "Embedded JAR" file included in the your Java Product. The same problem was also discussed in the Digital Signature Problem thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vewert
Posts: 6
Joined: Wed Jun 19, 2013 5:16 pm
Contact: Website

Re: No option to Digitally sign Java Native Launcher exe

Thank-you for your response. I can see now, from the other discussion, that I can't sign the exe if I have an embedded jar, but now I'm wonder why Advanced Installer has been designed that way, I think a lot of people would want to be able to both embed the jar and sign the exe.

-Victor
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No option to Digitally sign Java Native Launcher exe

Hi Victor,

Unfortunately, this is not supported by Java Virtual Machine and that's the reason we designed Advanced Installer that way.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdressler
Posts: 4
Joined: Fri Dec 23, 2016 2:48 pm

Re: No option to Digitally sign Java Native Launcher exe

Hello Eusebiu,
I'm using Advanced Installer 13.3 and have been run in the exact same situation.
I wanted to digitally sign an embedded jar with advanced installer.
As described above, the advanced installer does not support to sign the EXEs with an embedded JAR.

But as we really need that feature, I've done some more investigation and done the following steps:
- I extracted the signed Setup-EXE with the Option "/EXTRACT"
- in the installer package I have bundled 2 EXE-Files with embedded JARs created by Advanced Installer
- I signed both of them with the Signtool from the Windows SDK
- I started the installation with the bundled Setup-MSI
- for me that all worked fine

My question is now:
Why it is / was not possible to sign EXEs with embedded JARs in Advanced Installer?

Secondary:
Is it possible to enable that feature experimental in some way?

Yours sincerely,
Philipp
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: No option to Digitally sign Java Native Launcher exe

Hello Philipp,
Why it is / was not possible to sign EXEs with embedded JARs in Advanced Installer?
This is because the method of embedding the JAR file into the EXE launcher is not fully compatible with the file digitally signing operation. There might be situations when the digitally signed EXE launchers (with embedded JAR) won't work. This is a limitation of Advanced Installer. Thank you for your understanding.
Is it possible to enable that feature experimental in some way?
The only way will be to manually add, each time after reopening the project in Advanced Installer, the EXE java launcher file in "Files Configured for Siging" section from "Digital Signature" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdressler
Posts: 4
Joined: Fri Dec 23, 2016 2:48 pm

Re: No option to Digitally sign Java Native Launcher exe

The only way will be to manually add, each time after reopening the project in Advanced Installer, the EXE java launcher file in "Files Configured for Siging" section from "Digital Signature" page.
Hello Daniel,
thanks for your response.

Is there a possibility to add the embedded EXEs during a rebuild via command line? As our current build process uses an ant script, it would be more convinient to build it through command line.
That would give us some time to examine the alternatives to the current build process with the embedded JARs.

Best regards
Philipp
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: No option to Digitally sign Java Native Launcher exe

Hello Philipp,
Is there a possibility to add the embedded EXEs during a rebuild via command line? As our current build process uses an ant script, it would be more convinient to build it through command line.
That would give us some time to examine the alternatives to the current build process with the embedded JARs.
I'm afraid not. This is not possible. Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”