PDA

View Full Version : DeleteDir(TARGETDIR, ALLCONTENTS);



BugKiller
07-19-2004, 05:29 AM
Hi @ all.

The command
DeleteDir(TARGETDIR, ALLCONTENTS);
does not work properly on Win2K Server english version.

After deinstall i found some files and folders. Why?

Any ideas?

In WinXP, Win2K Pro and other there is no problem.

Saifadam Pathan
07-20-2004, 02:16 AM
I too have observed this in our setups made by InstallShield Professional 6.2. I use 'DeleteDir(TARGETDIR, ROOT);'

But in my case, some files were created after installation. And on uninstall, a file or two remain locked. Hence I tried to intercept the 'OnFileLocked(File)' event and do a 'return ERR_PERFORM_AFTER_REBOOT;'.

Even after reboot, the some files and the folder do remain and not necessarily in Win2k only.

I assume all this is due to the fact that DeleteDir fails whenever it encounters read-only files. Also it cannot delete read-only, hidden or system files.

Hope someone provides a better solution other than finding the problem files and changing their attributes manually using the SetFileInfo function.

BugKiller
07-22-2004, 08:50 AM
Has nobody a solution?

BugKiller
08-04-2004, 06:38 AM
Hi IS.

I don't have response from you!
Is there nobody at IS company?

regards BugKiller