https://bugs.winehq.org/show_bug.cgi?id=46956
--- Comment #6 from Glen Miner shaggie76@hotmail.com --- I went looking to see if I could hack around this problem by emulating what the patched ReplaceFile does; I can get close but in the end I'm blocked because the call to rename() is subverted: when WINE calls it libc answers; when I call it dlls/msvcrt/file.c answers (and fails: Permission denied).
If there was a way for me to call the 'real' rename() I'd be willing to try but as it stands I've spent far, far more time trying to work around this problem as it is.
I'm going to just hack our launcher to detect this failure and direct people here. I'm not willing to modify how the launcher works at a fundamental level because screwing that up could break millions of installs and it isn't worth the risk.