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

查看:45
本文介绍了使用注册表检测安装的 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.

推荐答案

首先在这个key中查找安装的Outlook版本:

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

HKEY_CLASSES_ROOTOutlook.ApplicationCurVer

HKEY_CLASSES_ROOTOutlook.ApplicationCurVer

值为 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_MACHINESoftwareWow6432NodeMicrosoftOffice15.0Outlook

HKEY_LOCAL_MACHINESoftwareWow6432NodeMicrosoftOffice15.0Outlook

如果存在,请检查 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天全站免登陆