Unpack example izpack-dist-5.1.3-installer.jar to extract a pack file

169 views
Skip to first unread message

Justin Bush

unread,
May 5, 2023, 9:37:54 PM5/5/23
to izpack-dev
Hello,

I downloaded the example jar file from the http://izpack.org/downloads/ site, and I unzipped it. I'm trying to unpack one of the pack files, pack-Core from the resources/packs folder, and extract its contents into a new folder.

In UnpackFromFile, in main, we used a function, testUnpack( ) from AbstractFileUnpackerTest.java to try to unpack. 

To run it, I'm using a java -jar command with two arguments (first: my source variable. the file to unpack, second: my target variable, my destination folder) using main( )'s String[ ] args array parameter.

Here's the command:
java -jar target/izpack-installer-5.2.0-SNAPSHOT-jar-with-dependencies.jar

"izpack\izpack-installer\src\main\java\com\izforge\izpack\installer\unpacker\resources\pack-Core"

"Desktop\unpackedPackFile"


My question is:

I have to extract everything from pack-Core's contents into a new separate folder, but it only accepts files. Is there a way to unpack pack-Core and get it's contents and put them in separate files, into a folder?

Hitesh A. Bosamiya (Yahoo!)

unread,
May 6, 2023, 7:31:16 AM5/6/23
to izpack-dev
Are you trying to look at the source of IzPack or you want to create an installer for your application? IzPack 5.2.0 is not yet released. If you want to create your own installer then you may like to refer to attached a very simple maven project (uses IzPack 5.1.3). You can use command "mvn clean build" to build the jar file and then run the final jar "target/my-example-installer.jar".

Hope this helps,
Regards,
- Hitesh

--
You received this message because you are subscribed to the Google Groups "izpack-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to izpack-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/izpack-dev/86395405-7fb6-4e8e-8e62-5ca6c2774f71n%40googlegroups.com.
izpack-example.zip
Reply all
Reply to author
Forward
0 new messages