DelFiles Sections


[<file-list-section>]
<file-name>[,,,<flag>]
    .
    .
    .

A DelFiles section lists the names of files to be deleted. The file-list-section name must appear in the Delfiles item of an Install section.

file-name

Identifies a file to be deleted.

flag

Optional parameter used to force Windows 95 to delete the file named in the item if it is in use during the installation process. Set the flag parameter value to 1 to cause Windows 95 to queue the file deletion operation until the system has restarted. If a file marked with the flag=1 parameter setting cannot be deleted because it is in use, a system restart will occur after the device installation is complete.

If you do not use the flag parameter value equal to 1 along with a file-name parameter, then if that file is in use when the DelFiles section is executed that file will not be deleted from the system.

This example deletes three files:


[DeleteOldFilesSec]
file1
file2
file3

All the filenames used in this example must be defined in a SourceDisksFiles section and the logical disk numbers that appear in the SourceDisksFiles section must have been defined in a SourceDisksFiles section.