Pascal Scripting: RestartReplace
Prototype:
procedure RestartReplace(const TempFile, DestFile: String);
Description:
Renames TempFile to DestFile the next time Windows is started. If DestFile already existed, it will be overwritten. If DestFile is '' then TempFile will be deleted. An exception will be raised upon failure.