is there a way to delete a dir with deletefile() or i need to use api for the moment?
I wouldn't suggest doing it under any circumstances programatically.
This is what your installshield should be used for. Like INNO Setup.
http://innosetup.com/isinfo.php
Sorry but this is one type of code I don't give out, it can be construde as milicious, even in the best of intent.
There are many reasons you want to delete a directory, especially if your program created it.
You have to delete all the files in the directory first and then call the API function RemoveDirectoryA.
import int RemoveDirectoryA(string lpPathName);
Quote from: zumwalt on August 04, 2006, 09:12:41 AM
I wouldn't suggest doing it under any circumstances programatically.
This is what your installshield should be used for. Like INNO Setup.
http://innosetup.com/isinfo.php
Sorry but this is one type of code I don't give out, it can be construde as milicious, even in the best of intent.
hehehe :)
well, depend on your intentions ... my program see directories as books, the files in them are interpreted as recipies ;)
so if i want to delete a book i have to delete a directory ...
thanx Paul ;)