I try to replace files during reboot using the PendingFileRenameoperations registry value.
On reboot the files are not renamed but the key is deleted. I don't know why it's not working.
So to check if it's not a bug in my code, I tried the sysinternals "movefiles" and "pendmoves" tools.
The pendmove show the files that need to be replaced, so it's ok.
Since it's not working with my code, I tried to use the movefiles to write the registry key. It's added to the registry but event with that tool, the files are not replaced at reboot.
Is the some tricks to make it work on Windows 10 21H1 ?
Thanks