msvcp140.dll could not be extracted

Questions about Wine on Linux
Locked
realbug
Level 2
Level 2
Posts: 15
Joined: Sun May 22, 2022 3:27 am

msvcp140.dll could not be extracted

Post by realbug »

https://github.com/KurtBestor/Hitomi-Do ... /tag/v3.8c

The wine version is 8.7 and when you run the program
"msvcp140.dll could not be extracted!!
fopen: Permission denied"

An error occurs.

I understand that this is related to "pyinstaller".
qwertymnb
Level 5
Level 5
Posts: 273
Joined: Sun Jan 17, 2016 4:36 pm

Re: msvcp140.dll could not be extracted

Post by qwertymnb »

Hi,
This looks like bug https://bugs.winehq.org/show_bug.cgi?id=49334

As a dirty workaround you could try replace the (unicode) string "S-1-3-4" by "S-1-0-0" in the executable :

sed 's/\x53\x00\x2D\x00\x31\x00\x2D\x00\x33\x00\x2D\x00\x34\x00/\x53\x00\x2D\x00\x31\x00\x2D\x00\x31\x00\x2D\x00\x30\x00/g' hitomi_downloader_GUI.exe >hacked_hitomi.exe

And then run the "patched" binary "wine hacked_hitomi.exe".
realbug
Level 2
Level 2
Posts: 15
Joined: Sun May 22, 2022 3:27 am

Re: msvcp140.dll could not be extracted

Post by realbug »

qwertymnb wrote: Fri May 05, 2023 1:15 am Hi,
This looks like bug https://bugs.winehq.org/show_bug.cgi?id=49334

As a dirty workaround you could try replace the (unicode) string "S-1-3-4" by "S-1-0-0" in the executable :

sed 's/\x53\x00\x2D\x00\x31\x00\x2D\x00\x33\x00\x2D\x00\x34\x00/\x53\x00\x2D\x00\x31\x00\x2D\x00\x31\x00\x2D\x00\x30\x00/g' hitomi_downloader_GUI.exe >hacked_hitomi.exe

And then run the "patched" binary "wine hacked_hitomi.exe".
Unfortunately, running with a patched file results in the same result.
realbug
Level 2
Level 2
Posts: 15
Joined: Sun May 22, 2022 3:27 am

Re: msvcp140.dll could not be extracted

Post by realbug »

qwertymnb wrote: Fri May 05, 2023 1:15 am Hi,
This looks like bug https://bugs.winehq.org/show_bug.cgi?id=49334

As a dirty workaround you could try replace the (unicode) string "S-1-3-4" by "S-1-0-0" in the executable :

sed 's/\x53\x00\x2D\x00\x31\x00\x2D\x00\x33\x00\x2D\x00\x34\x00/\x53\x00\x2D\x00\x31\x00\x2D\x00\x31\x00\x2D\x00\x30\x00/g' hitomi_downloader_GUI.exe >hacked_hitomi.exe

And then run the "patched" binary "wine hacked_hitomi.exe".
However, if you run with sudo as root privileges, the original file will also run. However, I am concerned about security problems because I run it with root authority.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: msvcp140.dll could not be extracted

Post by jkfloris »

You could also use the following workaround:
https://github.com/pyinstaller/pyinstal ... -635963308
realbug
Level 2
Level 2
Posts: 15
Joined: Sun May 22, 2022 3:27 am

Re: msvcp140.dll could not be extracted

Post by realbug »

jkfloris wrote: Fri May 05, 2023 3:31 pm You could also use the following workaround:
https://github.com/pyinstaller/pyinstal ... -635963308
Unfortunately, I don't think that setting is possible in the lxc environment.
Locked