32-bit WINEPREFIX issue (FAQ isn't helping)

Questions about Wine on Linux
Locked
stevenajordan
Newbie
Newbie
Posts: 1
Joined: Sun Nov 23, 2014 12:11 am

32-bit WINEPREFIX issue (FAQ isn't helping)

Post by stevenajordan »

Hello,

Apologies if this is an easy problem- I am still new to Wine (and Linux), but I couldn't find a solution in the FAQ or forum.

I recently switched to Linux Mint 17 from Windows, and I am trying to install Windows Media Player 10. As per instructions, I tried to install it using winetricks, but got the error: Installer doesn't support 64-bit architecture. Use a 32-bit WINEPREFIX instead.

I searched the FAQ and in the terminal, I typed:
WINEARCH=win32 WINEPREFIX=/home/nuts-iv/.wine/drive_c winecfg

and received:

wine: WINEARCH set to win32 but '/home/nuts-iv/.wine/drive_c' is a 64-bit installation.

And then when attempting winetricks wmp10, I now receive:

wine cmd.exe /c echo '%ProgramFiles%' returned empty string

I am now lost.. What do I need to do to solve this problem?

Thank you
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Re: 32-bit WINEPREFIX issue (FAQ isn't helping)

Post by L. Rahyen »

You need to create new Wine prefix with WINEARCH=win32. For example:

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine32 wineboot
Do not forget to specify WINEPREFIX if you use winetricks.

Alternatively, if you want your default Wine prefix to be 32-bit, you can rename your 64-bit ~/.wine (for example, "mv ~/.wine ~/.wine64"); if you move your 64-bit Wine prefix out of the way, you will not need WINEPREFIX environment variable in the command above.
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: 32-bit WINEPREFIX issue (FAQ isn't helping)

Post by dimesio »

I searched the FAQ and in the terminal, I typed:
WINEARCH=win32 WINEPREFIX=/home/nuts-iv/.wine/drive_c winecfg

and received:

wine: WINEARCH set to win32 but '/home/nuts-iv/.wine/drive_c' is a 64-bit installation.
As the FAQ says, you can't change the architecture of an existing wineprefix, and you have to let Wine create the folder.
So if you want ~/.wine to be 32 bit, you have to delete it first; then you can recreate it as a 32 bit wineprefix. And the path to that wineprefix would be /home/nuts-ive/.wine, not /home/nuts-ive/.wine/drive_c.
Locked