java - Preserving a folder and its content during an installation update -


i have solution in mind don't know how accomplish natively in install4j.

i have folder containing repository of artifacts (similar maven's .m2 repository folder schema) file names uniquely generated (timestamp) during maven compilation.

e.g. ./install-dir/artifacts/app-core/jar/1.2-t20160419183129/app-core-1.2-t20160419183129.jar

after running installer "update existing installation" checked, install4j append these files , preserve older timestamped version of artifact. not bug , working intended. end result like:

./install-dir/artifacts/app-core/jar/1.2-t20160415154633/app-core-1.2-t20160415154633.jar ./install-dir/artifacts/app-core/jar/1.2-t20160419183129/app-core-1.2-t20160419183129.jar 

nothing changed in these files timestamp generated during compilation. there method can approach within install4j verify if component mentioned above newer installers counterpart. have ignore timestamp , take account version number , md5 checksum.

right now, removing artifacts folder , replacing installers version. however, aggressive approach hope migrate away from.

right now, removing artifacts folder , replacing installers version. however, aggressive approach hope migrate away from.

i stay strategy. if jre file removed in new version? if match updates without time stamp, old jar files remain in installation , on class path.

otherwise, there no feature in install4j (as of 6.1) allow perform update in way.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -