How to find out, if a prefix is 32 bit or 64 bit?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
sibare
Level 2
Level 2
Posts: 24
Joined: Tue Apr 14, 2020 1:42 pm

How to find out, if a prefix is 32 bit or 64 bit?

Post by sibare »

Hello

I have already searched in man page. But I did not find anything.
When I have a prefix: How can I the check, if it is a 32 bit prefix or a 64 bit prefix? Is there any command?

Thank you.
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to find out, if a prefix is 32 bit or 64 bit?

Post by dimesio »

Look for a /windows/syswow64 directory in the wineprefix. If it exists, the wineprefix is 64 bit; if it doesn't, it's 32 bit.
sibare
Level 2
Level 2
Posts: 24
Joined: Tue Apr 14, 2020 1:42 pm

Re: How to find out, if a prefix is 32 bit or 64 bit?

Post by sibare »

Thank you. :-)
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: How to find out, if a prefix is 32 bit or 64 bit?

Post by spoon0042 »

Or 'head -4 $WINEPREFIX/system.reg' will show either #arch=win32 or win64.
sibare
Level 2
Level 2
Posts: 24
Joined: Tue Apr 14, 2020 1:42 pm

Re: How to find out, if a prefix is 32 bit or 64 bit?

Post by sibare »

Was successful. Thank you @spoon0042.
Locked