Determing 32 Bit or 64 Bit in advance of installation

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
spflanze
Level 1
Level 1
Posts: 9
Joined: Sat Jan 21, 2017 12:27 pm

Determing 32 Bit or 64 Bit in advance of installation

Post by spflanze »

Other than documentation that might come with the file, is there a way to know in advance of installation whether an installation file will install a 32 bit or a 64 bit MS Windows program?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Determing 32 Bit or 64 Bit in advance of installation

Post by Bob Wya »

spflanze wrote:Other than documentation that might come with the file, is there a way to know in advance of installation whether an installation file will install a 32 bit or a 64 bit MS Windows program?
Yup... See the pev - the PE file analysis toolkit ...

I've got version 0.40 installed (for some reason later releases segfault on me - probably a mistake in my Gentoo build script - possibly a bug)...

Code: Select all

pev -c abbulkmailer_setup.exe

COFF header:
 Machine:			0x14c - Intel 386 and compatible (32-bits)
 Number of sections:		4
 Date/time stamp:		1441778346 (Wed, 09 Sep 2015 05:59:06 UTC)
 Symbol Table offset:		0
 Number of symbols:		0
 Size of optional header:	0xe0
 Characteristics:		0x103 (0000000100000011)
				base relocations stripped
				executable image
				32-bit machine
It can also give you the product build version, and all kinds of other goodies!
I'm sure for binary distributions the newer (more feature rich releases) will run OK... probably 8)

Bob
madewokherd
Level 4
Level 4
Posts: 144
Joined: Mon Jun 02, 2008 5:03 pm

Re: Determing 32 Bit or 64 Bit in advance of installation

Post by madewokherd »

No, installers will usually be a 32-bit executable, regardless of whether they install 32-bit or 64-bit software.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Determing 32 Bit or 64 Bit in advance of installation

Post by Bob Wya »

madewokherd wrote:No, installers will usually be a 32-bit executable, regardless of whether they install 32-bit or 64-bit software.
Yup. confirmed. I stand corrected! 8)

Bob
Locked