This is the 22nd day of my participation in the More text Challenge. For details, see more text Challenge

The steps for packaging an EXE have been explained in detail in the previous article,

The previous article has explained the steps for packing an EXE in detail. Here’s how to compress an EXE into an installation file. Exe4j is packaged as an EXE in this article

Open the Inno editor

  • After opening the software, we select the script wizard to create a new script file and click OK

  • Click “Next” and the following interface will appear. The fields in it are all in Chinese characters, so I don’t need to explain

  • Click Next, select the default folder part, and then continue to click Next to display the following interface

  • We need to change the execution file to the exe file we printed in the previous article. Note that our previous exe was packaged with either a JDK or A JRE. In this case, we also need to select jre for the exe and JDK for the JDK

  • From here, we can go on to the next step. The information is in Chinese characters, you can choose to fill in according to the meaning, it doesn’t matter if you don’t fill in. It’s better to go here

  • Once you are sure, you can wait in peace. Once the package is packaged, you can go to the following interface to find the installation package, if you do not set it will be in the Inno installation package output folder. Good luck to you!

The effect

  • Let’s see how my program works

  • At this point in the program left below the table also followed the change

  • The installation process

  • The installation is complete

C:\Users\87077\Documents\test\*
Copy the code

conclusion

  • In the last post, we instantly improved the quality of a jar to an EXE. Finally, you can export the JAR to someone else! This article will be a thorough process of distributing the JAR as commercially available software.
  • Of course, one thing to note when we package is that we need to package our JDK environment into it. Otherwise, it will not run on computers that do not have JDK environment variables configured. Also, the installation package can be very large because it contains the entire JRE!!