Sometimes a file need to be deleted during an installation, but it can not be done because of the file is active and locked by the system. To handle this we have added a new script command to Visual Installer with the name RDELETE that can be used to mark a file for deletion and let the system delete the file when the computer restarts.
When you use this command, no attempt will be made to delete the file during the installation. Instead Visual Installer will inform the system that the file need to be deleted during the next system reboot.
The command syntax is the following:
RDELETE filepath
Example:
RDELETE %DESTDIR\CleanUp\CleanUp.exe
This command is useful when a file need to be deleted, but there is no hurry to delete the file. You can then call this command and let the system delete it later.
See also
> 4 delete commands available in the script language – when to use which
> Visual Installer’s Scripting Language