cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
numberofcode
Level 3

Detecting if a file is 32 or 64 bit

I need to check if a file (in this case an executable) of an installed program is 32 or 64 bit. Does installshield provide a method to do this? I was thinking something with GetFileInfo(), but it doesn't seem to provide any options of finding if the file is 32 or 64 bit.

Any ideas?
(this is for a basic msi project on a windows machine)


Thanks.
Labels (1)
0 Kudos
3 Replies
MSIYER
Level 8

http://msdn.microsoft.com/en-us/library/aa364819(v=vs.85).aspx

Detects only executable files. This API fails for dlls and other binaries.
0 Kudos
Not applicable

prototype BOOL Kernel32.GetBinaryType(BYVAL STRING, BYREF LONG);
0 Kudos
numberofcode
Level 3

Worked perfectly.


Thanks.
0 Kudos