通过使用注册表来检测安装的MS Office是32位还是64位 [英] Detect whether MS Office installed is 32bit or 64bit by using registry

查看:144
本文介绍了通过使用注册表来检测安装的MS Office是32位还是64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想基于Excel版本(32位或64位)安装vsto插件. 我打算捆绑32位和64位msis并通过确定excel版本安装一个. 我可以找到此链接,以通过使用注册表来检测2010 Office是32位还是64位. 通过注册表检测Office是32位还是64位 但我想检查Excel 2007和2013是否为32位或64位. 是否可以通过注册表检测到它们.

I want to install vsto addin based on the excel version (32 bit or 64 bit). I am planning to bundle both 32bit and 64 bit msis and install one by determining the excel version. I am able to find this link to detect whether 2010 office is 32 bit or 64 bit by using registry. Detect whether Office is 32bit or 64bit via the registry But i want to check for excel 2007 and 2013 whether they are 32 bit or 64 bit. Is it possible to detect them via registry.

推荐答案

首先,在此注册表项中查找Outlook的安装版本:

First, look for the installed version of Outlook in this key:

HKEY_CLASSES_ROOT \ Outlook.Application \ CurVer

HKEY_CLASSES_ROOT\Outlook.Application\CurVer

该值为Outlook.Application.15(用于2013).然后解析该值以获取整数并查找此键:

The value will be Outlook.Application.15 (for 2013). Then parse that value to get the integer and lookup this key:

HKEY_LOCAL_MACHINE \ Software \ Wow6432Node \ Microsoft \ Office \ 15.0 \ Outlook

HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\15.0\Outlook

如果存在,请检查Bitness的值以确定它是32位(x86)还是64位(x64).如果不存在,则假定为32位.

If it exists, check the value of Bitness to determine if it is 32-bit (x86) or 64-bit (x64). If it doesn't exist, assume 32-bit.

这篇关于通过使用注册表来检测安装的MS Office是32位还是64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆