This is the first post of my Windows 10 Feature Updates series, probably totally out of sequence, but I just need to start getting the pieces written and published.
The operating system renames the file in the first item of the pair to match the second item of the pair. The PendingFileRenameOperations key stores the names of files that the operating system will rename when it restarts. Delete operations use an empty string as their target path. These registry entries are a REG_MULTI_SZ data type, which specifies each operation in pairs of file names: the first file name is the source location, and the second is the target location. MoveFileEx simply records commands in the PendingFileRenameOperations and PendingFileRenameOperations2 values under the registry key HKLM\SYSTEM\CurrentControlSet\Control\Session Manager.
The MoveFileEx Windows API has an option to delay a file move until the next boot.Īny Service Pack or hot fix that update in-use, memory-mapped files install replacement files into a temporary location on the computer, and use MoveFileEx to replace files that are otherwise in use.