I have a install4j project and want to make a project.
There is a libs-folder within my setup, where all my jars are packaged:
<install-dir>/libs/myA.jar
<install-dir>/libs/myB.jar
<install-dir>/libs/alien.jar
The alien.jar is a additional file, not created from my setup.
if I deliver a update with a packages libs-folder the alien.jar get deleted and I don’t understand why.
There is a DeleteFilesAction before the InstallFilesAction, which has a filter that all alien.jar weon’t be deleted. If I make a MessageBox after my DeleteFilesAction, the
alien.jar
still exists.
When the InstallFileAction starts, the complete libs-Folder seems to be deleted.
I beleave there are configuration flags, which I don’t know.
Question:
How do I delete the complete libs-folder, expect the alien.jar?
I think it is not possible with an
DeleteFilesAndDirectory-Action to delete all (unknown) files within a directory.I used a Action where
<install-dir>/libsis provided as folder to be deleted.I provided a filter-Script for filenames (the alien.jar had a return value “false” the rest shozuld be deleted). But the action deletes the libs-dir as well. I think it works as designed, so it is not a bug.
For all peope with the same Problem a workarround or soultion:
At Ingo Kegel:
Thanks for your help, I didn’t want to open a support ticket, because I was quite sure it is no bug in you product. But I think another checkbox “delete if not empty” would help a lot in the
DeleteFilesOrDirectoryAction.