This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Detecting if a file is 32 or 64 bit
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 13, 2011
10:00 PM
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.
Any ideas?
(this is for a basic msi project on a windows machine)
Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 14, 2011
12:27 AM
http://msdn.microsoft.com/en-us/library/aa364819(v=vs.85).aspx
Detects only executable files. This API fails for dlls and other binaries.
Detects only executable files. This API fails for dlls and other binaries.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 14, 2011
03:10 AM
prototype BOOL Kernel32.GetBinaryType(BYVAL STRING, BYREF LONG);
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 14, 2011
06:23 PM
Worked perfectly.
Thanks.
Thanks.