Fushigi
Storage Is My Life
Overwrite has the same net effect as a delete/recreate - replace an old file with a new one - but the process is different. An overwrite would not be a delete/copy; it would look more like allocate/open a file, write the new contents, truncate to force EOF in case the new file is shorter, close.
BTW I should have commented more about the registry for Case 2. Registries are fine, but there should really be separate system & application registries and applications (anything that's not a Windows component) should never be allowed to update the system registry. A single registry to rule them all is a bad idea on Microsoft's part. It is far too easy for a rogue application to mess up system aspects of the registry under the current design.
Something similar should have been done with DLLs; applications that call already installed Windows DLLs are fine, but if they supply their own, even if they are normal MS DLLs that simply aren't installed already on the machine, they should only place them in the application's directory. "DLL Hell" could have easily been avoided or at least radically reduced.
In essence with proper design there would have been very few times when non-Windows software actually needs to write to the Windows directory structure.
BTW I should have commented more about the registry for Case 2. Registries are fine, but there should really be separate system & application registries and applications (anything that's not a Windows component) should never be allowed to update the system registry. A single registry to rule them all is a bad idea on Microsoft's part. It is far too easy for a rogue application to mess up system aspects of the registry under the current design.
Something similar should have been done with DLLs; applications that call already installed Windows DLLs are fine, but if they supply their own, even if they are normal MS DLLs that simply aren't installed already on the machine, they should only place them in the application's directory. "DLL Hell" could have easily been avoided or at least radically reduced.
In essence with proper design there would have been very few times when non-Windows software actually needs to write to the Windows directory structure.