简体   繁体   中英

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 .

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM