CopyFileW also copies the file attributes, and the copy will be opened with write access later on. This is import of Wine commit: e830975806 Fixes MS Office 2000/2003 installers and probably others. CORE-17693
e830975806