简体   繁体   中英

how to create installer for Java that copies dll to JRE folder

I created a program and I want to make an installer for it. I have never done it before. Program uses RXTXcomm.jar and in order my program to work, some dll files has to be copied to JRE:

rxtxSerial.dll and rxtxParallel.dll to <JAVA_HOME>\\jre\\bin

so i wonder, how to make an installer that can copy these files? I tried "Inno Setup 5" but i can't find how to do that. I also tried "Advanced Installer" software, but can't figure it out so far.

Using Advanced Installer you can create a custom action (DLL or VBScript) which search for the JAVA_HOME location and set the result into an installer property. You should add the custom action before the "CostFinalize" standard action. Then, you should create in "Files and Folders" page a property-based folder using the above installer property set by your custom action and add your DLL files under the property-based folder.

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