hakuna-m / wubiuefi

fork of Wubi (https://launchpad.net/wubi) for UEFI support and for support of recent Ubuntu releases
GNU General Public License v2.0
1.06k stars 148 forks source link

Cannot unpack wubi.exe #238

Open WENJIE-BI opened 4 years ago

WENJIE-BI commented 4 years ago

Hello, i compied this in Ubuntu20.04, i change p7zip_url with https://www.7-zip.org/a/7z1900-x64.exe in toos/check_wine. make succeed, but tools/wine build/wubi.exe, reports "Cannot unpack Z:\home\bobbi\gitsrc\wubiuefi\build\wubi.exe". how to solve it ? thanks.

hakuna-m commented 4 years ago

IMHO, it is also necessary to change 7z.exe and 7z.dll in blobs OR to improve source code which is based on Wubi code from https://bazaar.launchpad.net/~ubuntu-installer/wubi/trunk/files

WENJIE-BI commented 4 years ago

my python is https://www.python.org/ftp/python/2.7.17/python-2.7.17.amd64.msi, so cannot execute success. now i change back to https://www.python.org/ftp/python/2.7.17/python-2.7.17.msi, and execute success. although i don't know why..^-^

thank you very much!

hakuna-m commented 4 years ago

my python is https://www.python.org/ftp/python/2.7.17/python-2.7.17.amd64.msi, so cannot execute success. now i change back to https://www.python.org/ftp/python/2.7.17/python-2.7.17.msi, and execute success.

It seems to be a 32 bit / 64 bit issue. Wubi(uefi) has ever been a 32 bit application to provide 32 bit support.

I don't know the exact reason but original Wubi uses three different versions of 7z.

Version 4.64 to install 7z in Wine environment for packing Wubi parts. Version 4.57 as source code in src/7z to create pylauncher entry. Version 9.20 in blobs to unpack Wubi parts.