Media File Wizard: Executable Processing


  In this step of the media file wizard you can optionally configure an external command that is run for each generated executable.
  The install4j compiler can invoke a post-processor for each executable that is generated. This includes
  • generated launchers
  • the installer
  • the uninstaller

In the post processor text field you can use the $EXECUTABLE variable to reference the executable that is currently being post-processed. The working directory of the executed process is the directory your config is located in so you can use relative file names for key or certificate files. If the signing command cannot replace the executable directly, but rather needs a separate output file, use the $OUTFILE variable. It will receive a temporary output file name that will be moved back to the processed executable by install4j after the post processor has completed.

  Prior to install4j 5.1, this facility was use for code signing, which is now implemented directly in install4j and can be configured on the code signing tab of the general settings section.