http://bugs.winehq.org/show_bug.cgi?id=7046
------- Additional Comments From online@noteworthysoftware.com 2007-09-01 08:39 ------- The NWC2 install programs use NSIS CopyFiles instruction with the /SILENT directive, which calls the Windows Shell function SHFileOperation with the operation set to FO_COPY. In Windows, this operation can be used to replace an existing file. In Wine, this operation will fail when the target file exists.
The exact cause can be found here:
http://source.winehq.org/source/dlls/shell32/shlfileop.c#L1075
[CODE] if (SHNotifyCopyFileW(entryToCopy->szFullPath, fileDest->szFullPath, TRUE)) [/CODE]
By setting the parameter "bFailIfExists" to true, the file copy operation will fail when the target file exists.