I have this a couple of times installing various products with slightly different variation of the error message that cure in all the cases i have come across has been to delete the files in a specific registry key located at
HKLM\System\CurrentControlSet\Control\SessionManager
You will see a key called “PendingFileRenameOperations” i deleted the files in that key and the installation worked correctly.