function RenameFile(const OldName, NewName: String): Boolean;
Attempts to change the name of the file or directory specified by OldFile to NewFile. If the operation succeeds, RenameFile returns True. If it cannot rename the file (for example, if a file called NewName already exists), it returns False.
Can't be used to rename Setup itself until the installation has started.