Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile Inno Setup script (.iss files) with Maven?

I have a build workflow in which I transform a .jar to an executable binary (.exe) with the help of the launch4j maven plugin. I would like to create a .msi installer for this .exe, and I've used Inno Setup 5 to create a script to do this which works fine. But it would be even better if I could compile the script using a Maven plugin, so that I can create the installer package automatically in my build process. Is there a way to achieve this? I've looked at the exec Maven plugin, but I'm not sure how to configure it, or if it's even capable of executing compil32.

like image 717
Jesper N Avatar asked Feb 03 '26 16:02

Jesper N


1 Answers

You do not want to use Compil32.exe, that's Inno Setup GUI.

Use ISCC.exe command-line compiler, like:

ISCC.exe setup.iss

So the exec:exec goal configuration will be like:

<configuration>
  <executable>ISCC.exe</executable>
  <workingDirectory>...</workingDirectory>
  <arguments>
    <argument>setup.iss</argument>
  </arguments>
</configuration>
like image 140
Martin Prikryl Avatar answered Feb 05 '26 05:02

Martin Prikryl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!