http://bugs.winehq.org/show_bug.cgi?id=30589
--- Comment #2 from Hans Leidekker hans@meelstraat.net 2012-05-04 03:45:50 CDT --- There's a custom action that opens a log file in shared read mode without closing the handle. Later on, after the custom action thread has finished, another thread tries to open this file for writing and fails because of the sharing mode.
We might have a bug that prevents the custom action from closing the handle but I don't see any evidence for it.
Another explanation is that native runs custom actions in a separate process, which means that any open file handles are automatically closed when the custom action finishes. That would make this is a duplicate of bug 18070.