File.DeleteOnReboot

File.DeleteOnReboot ( 

string Filename )

Description

Deletes a file on the next system reboot.

Note: On Windows 95/98/ME systems, the filename cannot contain long path or file names, i.e., the path must conform to the DOS 8.3 naming convention. Windows NT, 2000, XP, Vista or later do not suffer from this limitation; however, if your installer needs to run on Windows 95, 98 or ME, you will need to use the DOS 8.3 naming convention to ensure that the action will work for all users.

Parameters

Filename

(string) The path to the file to delete on the next reboot.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions