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
We are using InstallBuilder 7.2.5.
asked 31 Oct '12, 08:03
Due to compatibility with older versions of Windows, InstallBuilder does not support paths longer than 255 bytes on this platform.
To ensure the deletion does not fail in case the directory does not exist, what can be done is:
answered 31 Oct '12, 10:59