Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Help for Beginner!


1 reply to this topic

creason3

creason3
  • Members
  • 1 posts

Posted 17 July 2002 - 04:24

???
I am attempting to unconditionally delete a folder using the DeleteDir function.  (e.g. DeleteDir ("D:\xxx", ALLCONTENT ); However the WILL NOT delete!  The return code is <0.  However I was able to genetate a message box as a result of the ExistsDir ("D:\xxx") then MessageBox... statement.

I have administrator right, the folder in not read-only. Nor is it hidden, or contain andy files (hidden or otherwise)!

I'm new to InstallShield. What am I doing wrong?

EberhardH

EberhardH
  • Members
  • 137 posts

Posted 17 July 2002 - 10:35

Hi,

did you search files in just this directory, using the FindAllFiles(...) function? If so, you have to finally call FindAllFiles(...) with CANCEL as the third parameter. This will free the directory so that it may be deleted afterwards with DeleteDir(...).

Another idea: did you make this directory your current directory with ChangeDirectory(...)? This will also prevent you from deleting it.

Eberhard