tangle
Posts: 1
Joined: Thu Jul 14, 2005 11:22 pm
Location: Princeton, New Jersey

Removing all files or entire folder?

I want to remove all the files from a folder that exists on the target computer or want to remove a specific folder on the target computer. I believe it has something to do with custom actions but can't figure it out. Thanks.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

If you know the exact names of the files to be removed you can use the "New File Removal" toolbar option from the "Files and Folders" tab.

If you want to erase an random number of files in a folder or the whole folder you have to use a custom action. I would suggest a small executable to erase a folder given in the command line or some script. VBScript it is fairly easy to use for this purpose.

You can check out this URL for a sample of a VB script that deletes some files and folders:

http://support.microsoft.com/default.as ... -us;197425

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”