InstallAware for Windows Installer
 

Delete Files

This command deletes files already present on the target system.

Delete from Folder

Specify the full path to the folder containing the files to delete.

Files

Specifies the files to delete. You may use wildcards.

With the Windows Installer engine, you may not use any variables in this field, only string literals are allowed.

With the Native Engine, you may use variables in this field.

Delete when Installing

With the Windows Installer engine, check to have the files deleted when the product is being installed or maintained. This field is ignored by the Native Engine.

Delete when Uninstalling

With the Windows Installer engine, check to have the files deleted when the product is being uninstalled. This field is ignored by the Native Engine.

 Notes

  • With the Windows Installer engine, if you use the Copy/Move Local Files command in your script, you may want to pair each such command with a Delete Files command that undoes the operation using the Delete when Uninstalling option, since the local files command does not undo its action upon uninstallation.
  • To delete matching files in subfolders as well, use the Delete Files Recursive command.