https://bugs.winehq.org/show_bug.cgi?id=45611
Bug ID: 45611 Summary: 64bit prefix: copy file to system32 incorrectly copied to syswow64 Product: Wine Version: 3.0.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: tim110011@163.com Distribution: ---
How to reproduce: wine cmd Z:\home\me\0_wine> C: echo.>00aa.txt copy 00aa.txt c:\windows\system32 dir c:\windows\system32\00aa.txt
result:
Volume in drive c has no label. Volume Serial Number is 0000-0000
Directory of c:\windows\system32
8/11/2018 4:57 PM 2 00aa.txt 1 file 2 bytes 0 directories 351,430,549,504 bytes free
find . -depth -name 00aa.txt
result: ./syswow64/00aa.txt
wine xcopy is also affected. I think this is the reason why .NET Framework 64bit don't install.
System:
wine 3.0.2 fedora 28 kernel 4.17.12
https://bugs.winehq.org/show_bug.cgi?id=45611
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- This likely depends on which cmd/xcopy you're using, 32bit versions of those should copy to syswow64.
https://bugs.winehq.org/show_bug.cgi?id=45611
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Unless you see different results on Windows of course.
https://bugs.winehq.org/show_bug.cgi?id=45611
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de Ever confirmed|0 |1 Status|UNCONFIRMED |NEEDINFO
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- As Nikolay Sivov already said, 32bit cmd copies to syswow64, 64bit cmd copies to system32. That's how both windows and wine behave.
The only error I could imagine, is that the wrong cmd is started. But that would need verification.
I think this is the reason why .NET Framework 64bit don't install.
What makes you think so?
https://bugs.winehq.org/show_bug.cgi?id=45611
--- Comment #4 from tim110011@163.com --- I tested copy behavior on windows 7 x64: 32bit `copy 00aa.txt c:\windows\system32` copy file to syswow64 64bit `copy 00aa.txt c:\windows\system32` copy file fo system32 Launch cmd via start menu's run box will launch the 64bit one.
This isue was found when i was making a bash script to manually extract dotnet40 for 64bit prefix using wine's copy: no file copied to system32 dir, same result as winetricks. I use meld compared changed dirs.
Was that `dotNetFx40_Full_x86_x64.exe` running on a wrong environment or it was calling the wrong cmd? This was my think.
https://bugs.winehq.org/show_bug.cgi?id=45611
--- Comment #5 from Fabian Maurer dark.shadow4@web.de ---
This isue was found when i was making a bash script to manually extract dotnet40 for 64bit prefix using wine's copy
Probably your bash script that's at fault then.
https://bugs.winehq.org/show_bug.cgi?id=45611
--- Comment #6 from tim110011@163.com --- `wine64 cmd ` will give the desired result. Better update docs and man page : Use `wine64 cmd` to launch 64bit cmd.
wine64 will not help dotNetFx40_Full_x86_x64.exe install, that's maybe another bug.
https://bugs.winehq.org/show_bug.cgi?id=45611
Aaron Simmons paleozogt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paleozogt@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45611
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID CC| |focht@gmx.net Status|NEEDINFO |RESOLVED Severity|critical |normal
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
resolving 'invalid' here. The problem with .NET Framework 4.0 installer indeed existed at one point -> bug 30713 ("Microsoft Visual C++ 64-bit redistributables get incorrectly installed into SysWOW64 (system directory for 32-bit files) when run under 64-bit Wine").
The problem here was "handmade" due to misunderstanding of how bi-arch Wine works.
Regards
https://bugs.winehq.org/show_bug.cgi?id=45611
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=45611
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED
--- Comment #9 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=45611
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Gijs Vermeulen gijsvrm@gmail.com --- Closing INVALID.