Now that Office also comes in a 64bit install, where in the registry do you find out if the version of Office installed is 32bit or 64bit?
相关问题
- Converting byte array output into Blob corrupts fi
- Are reads/writes of 64-bit values atomic on a 64-b
- Passing a namespace into a function
- How to name and reference an Excel range using off
- Using a 32bit COM object in a 64bit environment
相关文章
- Why windows 64 still makes use of user32.dll etc?
- Directly signing an Office Word document using XML
- Excel merge cell date and time
- What Component IDs should I search for to detect w
- Change jdk path in IntelliJ 13 when compiling from
- Set InstallPath registry key using Visual Studio S
- How to check 64/32-bit in Inno setup
- Clear Microsoft Office Add-Ins cache
Another way to detect the bitness of Office is to find out the typelib.
For example, to detect Outlook's bitness, write a .JS file as following:
You could find out other Office component's typelib id, and replace the first line of the function for it. Here is a brief list of interesting IDs:
All above lib id were found through the Windows SDK tool
OLE-COM Object Viewer
, you could find out more lib id's by using it.The benefit of this approach is that it works for all versions of office, and provides control on every single component in you interest. Furthermore, those keys are in the HKEY_CLASSES_ROOT and deeply integrated into the system, so it is highly unlikely they were not accessible even in a sandbox environment.
You can search the registry for {90140000-0011-0000-0000-0000000FF1CE}. If the bold numbers start with 0 its x86, 1 is x64
For me it was in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Registration{90140000-0057-0000-0000-0000000FF1CE}
Source
I found this approach:
If HKLM\Software\WOW6432Node exists then Windows is 64-bit.
If HKLM\Software\WOW6432Node\Microsoft\Office exists, then Office is 32-bit.
If HKLM\Software\WOW6432Node\Microsoft\Office does not exist, but HKLM\Software\Microsoft\Office does exist, then Office is 64-bit.
If HKLM\Software\WOW6432Node does not exist, then Windows and Office are 32-bit.
Source: Technet Forums