I have searched numerous forums and websites to find a foolproof way to determine if MS Office is 32-bit or 64-bit when the OS is 64-bit. I can't find one. Each "solution" I have found is followed by someone who has found an exception. The easy check is Outlook's bitness registry key. However, the registry key may or may not exist if Outlook is not installed. If someone has a method that seems to work every time, regardless of the product level (Home and Student, Business Pro, etc.) or version (2010 or 2013) would you please share it? I can't find it on this forum.
From what I can see on StackOverflow.com the bitness check for Outlook is the most appreciated and recommended solution.
I have on my machine only OneNote 2010 installed from Office and that registry does exist, so it seems to me that you don't need Outlook to be installed. Have you checked this registry on your machines?
Thanks for your reply. I have four computers I can check. Two are running 64-bit Windows 7 and two 32-bit Windows 7. Both 64-bit computers have Office 2010 Home and Student with 64-bit version installed. One 32-bit computer has Office 2010 Home and Student and one has Office 2007 Home and Student. Of course none of them have Outlook. The two 64-bit computers have the Bitness value under the Outlook key. Neither 32-bit computer has the Bitness value. That leads me to think that on 32-bit computers the Bitness key is present only if Outlook is installed OR it is never present since 32-bit requires 32-bit Office. At least, I'm going to proceed on that assumption.
You don't need the Bitness value on the 32 bit machines because they do not support installing the x64 edition of Office on them,
i.e. no x86 machine supports installing a x64 bit package on it. Only x64 bit machines support installing both x86 and x64 packages.
So you can combine your search for Bitness value with a test on predefined Windows Installer property VersionNT64. This property is set only if the
OS is a x64 one, so if the property is not set it means you are running on a x86 machine that can have only Office x86 installed. Please don't forget, you still need to check office is installed,
what I explained above solves only the bitness equation.
FOLLOW US
Get the latest news in Application Packaging