[Original] Use install4j to create a Windows installation package for javafx2.x [later]

Source: Internet
Author: User

The last article is not much and simple, but very practical.

1. explains how to place the DLL dynamic link library in the project into the installation package

First, place the required DLL file in a DLL folder and add it to the installed directory.

 

Then add the above DLL folder to native libraries in launcher.

 

Using Java to do video-related things, such as IP camera, usually require DLL. After installation, the directory is: (I ran it once and added the down and local folders generated by the Program)

 

View the video: the video interface is swing, which is hard to see...

 

2. Redirect output information and error output information

Select redirect stderr and redirect stdout in redirection in launcher, so that the system. Err and system. out information displayed during the software running will be redirected to the corresponding file.

 

3. Select whether to run on the end page.

First, add an action on the finish interface, and then select the action configured earlier.

 

4. Use a stronger Compression Method

The lzma and pack200 compression methods can also be simplified.

 

5. Clean and uninstall

Add an action-delete files and directoryies to uninstallation. Select installation directory as the Directory and select reversive. The entire installation directory will be uninstalled.

If it is not selected, by default, install4j will only delete the files and folders generated during installation, rather than the files or folders generated by the software.

 

 

6. add items in the Start Menu, such as URL links

Add a URL link to Windows Program Group Entries in create program group and configure the display name and link address.

 

7. Modify the default installation directory name and customize the installation directory name in installer options in media.

 

8. Modify the startup program name. In launcher, select executable info and enter executable name. This configuration is the name of the software running exe.

Select the second option in menu integration and set a name. This configuration is the name of the initiator in the Start Menu.

 

 

For more good use of install4j, see:

My first try with install4j: http://blog.ej-technologies.com/2010/12/my-first-try-with-install4j-tutorial.htmlMore installation options with install4j: http://blog.ej-technologies.com/2010/12/more-installation-options-with.htmlBeyond installing: http://blog.ej-technologies.com/2010/12/beyond-installing.html
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.