user2356654
user2356654

Reputation: 27

Can install4j update the xml files in the .war or .jar during 'Installer->Installation'?

This question is in regards to install4j 4.2.8.

We can get the users' information from their input. It's easy to update the xml files with users' input.

But is it possile to replace the xml files in the war/jar file with above modified xml files during installation? Is there any action can do this job?

Upvotes: 1

Views: 427

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48025

You would have to extract the WAR file to a temporary directory with a "Extract ZIP file" action, run the "Replace text in XML files" action on the XML file and use a "Create a ZIP" file action to overwrite the original WAR file.


Update for install4j 6.1+

Since install4j 6.1, there is a "Modify ZIP file" action that can modify files inside a ZIP file.

Upvotes: 2

Related Questions