Reputation: 2224
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
.
Upvotes: 3
Views: 2947
Reputation: 202514
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>
Upvotes: 4