PDA

View Full Version : Folder question 2



NewsArchive
03-05-2010, 02:35 AM
Hi together,

how can I remove all folders, that start with "TMP".

Example:

d:\data\tmp_123456
d:\data\tmp_456789

I want to do something like

deltree d:\data\tmp*

Thanks for any suggestion

Markus

NewsArchive
03-05-2010, 02:35 AM
Hi Markus,

I think the best way to handle "Folder question 1" and "Folder question 2"
is to develop a DLL with Delphi and call this DLL from the installer.

The "Handle File Listing" function in SetupBuilder lets you only retrieve
and process a file directory listing. There is no built-in function to
retrieve folder tree information yet (required to solve "Folder question
1").

Neither the delete folder functions in the installer nor the Windows APIs or
Microsoft C runtimes support wildcards on folders (required to solve "Folder
Question 2").

So the only way I see is to extend the installer functionality by using a
custom DLL.

Friedrich

NewsArchive
05-06-2011, 01:35 PM
Hi Friedrich,

I would be very happy, if this could be done via SB functionality

Markus

NewsArchive
05-06-2011, 01:35 PM
Hi Markus,

>
> I would be very happy, if this could be done via SB functionality
>

I've added it to the Wishlist.

Thanks,
Friedrich