rcbird
10-20-2003, 09:35 PM
Hi,
I am getting an error dialogue popup of the form "Cannot delete <folder>". It appears that when I use a vBuild OCI setup to install a new version overtop of an older version, vBuild is leaving some file handles open. This does not occur if I use a full setup (non-vBuild setup) to install the new version overtop of the old version.
This is what I'm doing:
1. Install the original version in folder A.
2. Install the new version in folder A. To do this, the setup does:
2a. Place the new version files in a tmp folder.
2b. Delete the old version out of folder A.
2c. Move the new version files from the tmp folder to folder A.
During step 2b, I get "Cannot delete <folder>" where <folder> is the root folder of a file group that the setup installs. I get at least one error for each file group.
Using Filemon from Sysinternals I've observed that the setup appears to be opening subfolders of <folder> more often than it is closing them, during the time it is reading all of the files in the old version. Later, during step 2b, Filemon reports a Sharing Violation on the subfolder, and then a "NOT EMPTY" result on the DELETE operation for the <folder>, and then the popup message dialogue appears saying that <folder> cannot be deleted.
I am using vBuild 2.1. Are you aware of this? What can I do to get around this?
Regards,
Ray
I am getting an error dialogue popup of the form "Cannot delete <folder>". It appears that when I use a vBuild OCI setup to install a new version overtop of an older version, vBuild is leaving some file handles open. This does not occur if I use a full setup (non-vBuild setup) to install the new version overtop of the old version.
This is what I'm doing:
1. Install the original version in folder A.
2. Install the new version in folder A. To do this, the setup does:
2a. Place the new version files in a tmp folder.
2b. Delete the old version out of folder A.
2c. Move the new version files from the tmp folder to folder A.
During step 2b, I get "Cannot delete <folder>" where <folder> is the root folder of a file group that the setup installs. I get at least one error for each file group.
Using Filemon from Sysinternals I've observed that the setup appears to be opening subfolders of <folder> more often than it is closing them, during the time it is reading all of the files in the old version. Later, during step 2b, Filemon reports a Sharing Violation on the subfolder, and then a "NOT EMPTY" result on the DELETE operation for the <folder>, and then the popup message dialogue appears saying that <folder> cannot be deleted.
I am using vBuild 2.1. Are you aware of this? What can I do to get around this?
Regards,
Ray