简体   繁体   中英

Can I create a standalone .exe installer for a Java application with Inno Setup?

Can all those steps be accomplished with Inno Setup or do I need additional software?

  • Create a standalone .exe installer for a Java application (either a main JAR plus libraries or a Uber JAR)
  • Bundle a JRE
  • Create a Desktop shortcut so users can start the application manually if necessary
  • Set up the application to run on startup

The answer could be either "yes" or "no, you would need the following additional software...".

Unless it's considered too broad a basic script would be appreciated too, but this is optional.

Instead of INNO setup, I use NSIS ( https://sourceforge.net/projects/nsis/ ), it's open source software, and very powerful, you can use script.

  • Create a standanlone .exe installer for a Java application (either a main JAR plus libraries or a Uber JAR)

    A: Yes, you need additional software like Launch4j( http://launch4j.sourceforge.net/ ) , or if you use Eclipse or IDEA there is built-in tools to create executable application

  • Bundle a JRE

    A: Yes, use NSIS script you can bundle JRE installation

  • Create a Desktop shortcut so users can start the application manually if necessary

    A: Yes, use NSIS script you can Create a Desktop shortcut

  • Set up the application to run on startup

    A: Yes, NSIS script you can write windows registry. depends on where you put, Programs defined in Run, RunOnce or StartUp will be loaded in following order: HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run StartUp Folder HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce

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