We are having a problem deleting a directory that includes an unpacked WAR file during uninstallation. The WAR file is unpacked by Tomcat.
The post uninstall actions include a deleteFile command with the path of the tomcat folder. The uninstall log says, "Cannot delete file C:...tomcat"
We only see a problem when the length of the full path of the longest file in the unpack WAR file is more than approximately 255 characters. If we use a shorter installation path the problem does not occur.
The tomcat service has been shutdown before the attempt to delete the directory and the permissions are correct. We only need to use a shorter installation path to work around the issue.
We have tried the following to resolve the issue
- Add the unpacked directory to the uninstaller (directory is not removed)
- Use the Windows rmdir command via runProgram (fails with "unknown error while running rmdir")
We are using InstallBuilder 7.2.5.
Please sign in to leave a comment.