debian: add Wine with proper 64-bit prefix initialization by mapitman · Pull Request #36 · mapitman/linux-bootstrap
Summary
Install Wine on Debian with correct 64-bit prefix initialization so both 32-bit and 64-bit Windows apps work out of the box.
Changes
- Enable i386 multiarch (
dpkg --add-architecture i386) - Install
wineandwine32:i386 - Initialize a 64-bit Wine prefix via
WINEARCH=win64 wineboot --init
Why
Without explicit prefix initialization, the syswow64 directory is left empty. This causes 32-bit Windows installers (even those with "Win64" in the name) to fail with:
wine: could not load kernel32.dll, status c0000135
Running wineboot --init with WINEARCH=win64 creates a proper 64-bit prefix with WoW64 support, allowing both 32-bit and 64-bit apps to run.